Revision: 46231
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at May 14, 2011 06:23 by jamiebrwr
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
http://www.wprecipes.com/how-to-easily-disable-theme-changing
Initial Description
When creating a WordPress based website for a client, you may need to make sure that he can’t switch themes. This is what I’m going to show you in today’s recipe.
Initial Title
Easily disable theme changing
Initial Tags
wordpress, theme
Initial Language
PHP