forum share
   textsms      forum    

Articole/intrebari

INDEX \ Articole/intrebari \ Remove Themes tab from your admin in WordPress

Remove Themes tab from your admin in WordPress

text_format+  text_format-


How to remove Themes tab from your admin in WordPress

Navigate to your theme, find and edit functions.php:

function remove_menus(){
//remove_menu_page( 'index.php' );                  //Dashboard
//remove_menu_page( 'jetpack' );                    //Jetpack* 
//remove_menu_page( 'edit.php' );                   //Posts
//remove_menu_page( 'upload.php' );                 //Media
//remove_menu_page( 'edit.php?post_type=page' );    //Pages
//remove_menu_page( 'edit-comments.php' );          //Comments
  remove_menu_page( 'themes.php' );                 //Appearance
//remove_menu_page( 'plugins.php' );                //Plugins
//remove_menu_page( 'users.php' );                  //Users
//remove_menu_page( 'tools.php' );                  //Tools
//remove_menu_page( 'options-general.php' );        //Settings
}
add_action( 'admin_menu', 'remove_menus' );






update Ultima actualizare: 10/02/2017
done Informatiile cuprinse in aceasta sectiune sunt verificate si actualizate periodic.

list Articole recente
arrow_back Inapoi


© 2019 EVIDWEB. Toate drepturile rezervate. Design: EVIDWEB
Certified partner with GlobeSSL

share  forum  textsms