• Resolved norristh3

    (@norristh3)


    Hi, I would like to change the admin menu for the role shop_manager.
    Everything is showing up exept Modula, could zou please give me the right “word” I need to type in. it’s not “modula.php” Here is my code please look in the last two lines:

    
    /**
     * mod: change admin menu for User-Role: Shop Manager by removing all tabs exept:
     */
    
    add_action('admin_init', 'nwcm_admin_init');
    
    function nwcm_admin_init()
    {   
        $user = wp_get_current_user();
        if ( in_array( 'shop_manager', (array) $user->roles ) ) { 
     // keep the following menue tabs
        $menus_to_stay = array(
            // Beitr?ge
            'edit.php',
    
            // Medien
            'upload.php',
    		
    		// Kommentare
            'edit-comments.php',
    		
    	// Modula
            'modula.php',
    
    • This topic was modified 3 years, 9 months ago by norristh3.
    • This topic was modified 3 years, 9 months ago by Yui. Reason: formatting
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘string for modula’ is closed to new replies.