Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author David Sader

    (@dsader)

    I’ll replace/add the following code to the next update I just need the time to give it a more thorough tire-kicking to see if the plugin needs any other tweaks.

    Could you add it to yours?

    // 'Appearance Customize'
    /*	if( !isset($menu_perms[ 'app_cus' ]) && current_user_can('edit_theme_options')) {
            remove_submenu_page( 'themes.php', 'customize.php' );
    		if( strpos($_SERVER['REQUEST_URI'], 'customize.php'))
    			{ wp_redirect( $redirect ); exit(); }
    	}
    */
    
    //Fix
    	if( !isset($menu_perms[ 'app_cus' ]) && current_user_can('edit_theme_options')) {
    		if(!empty($submenu['themes.php'])) {
    		foreach($submenu['themes.php'] as $key => $sm) {
    			if(__($sm[0]) == __('Customize') || $sm[2] == "customize.php") {
    				unset($submenu['themes.php'][$key]);
    				break;
    				}
    			}
    		}
    		if( strpos($_SERVER['REQUEST_URI'], 'customize.php'))
    			{ wp_redirect( $redirect ); exit(); }
    	}

    If you notice anything else, let me know. 🙂

    (Custom Background needs a toggle too, I see)

    Thread Starter Jason LeMahieu (MadtownLems)

    (@madtownlems)

    That is working perfectly. Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘'Customize' still showing, but link fails’ is closed to new replies.