Posted By

athanassiadis on 07/05/11


Tagged

textmate wordpress wp change theme disable


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

Kurt


Disable theme-change in Wordpress


 / Published in: Other
 

  1. add_action( 'admin_init', 'slt_lock_theme' );
  2. function slt_lock_theme() {
  3. global $submenu, $userdata;
  4. get_currentuserinfo();
  5. if ( $userdata->ID != 1 ) {
  6. unset( $submenu['themes.php'][5] );
  7. unset( $submenu['themes.php'][15] );
  8. }
  9. }

Report this snippet  

You need to login to post a comment.