Return to Snippet

Revision: 52377
at October 21, 2011 02:28 by florent


Initial Code
	add_action('admin_init', 'slt_lock_theme');
	function slt_lock_theme() {
	    global $submenu, $userdata;
	    get_currentuserinfo();
	    if ($userdata->ID != 1) {
	        unset($submenu['themes.php'][5]);
	        unset($submenu['themes.php'][15]);
	    }
	}

Initial URL


Initial Description


Initial Title
How to Easily Disable Theme Changing 

Initial Tags
wordpress, theme

Initial Language
PHP