Search
 
SCRIPT & CODE EXAMPLE
 

PHP

disable admin bar wordpress

/* Disable WordPress Admin Bar for all users */
add_filter( 'show_admin_bar', '__return_false' );
Comment

how to disable/hide menu admin page wordpress dev


/**
 * Removes some menus by page.
 */
function wpdocs_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', 'wpdocs_remove_menus' );
?>
Comment

PREVIOUS NEXT
Code Example
Php :: carbon time ago laravel 
Php :: email validation in laravel 
Php :: php default timezone 
Php :: get last two numbers from int php 
Php :: seed date laravel 
Php :: how to get array dont similer elements in php 
Php :: get logged in user name yii2 
Php :: reindex array php 
Php :: php regex remove characters from string 
Php :: while loop in laravel 
Php :: how if charactor is exist in text in laravel 
Php :: increase the number in php by a certain percentage 
Php :: add action wp_footer 
Php :: redirect back in laravel livewire 
Php :: year in php 
Php :: laravel add (s) at the end of text based on how many data 
Php :: php auto scoll page with output 
Php :: link js file in php 
Php :: php strip tags 
Php :: lazychaser laravel-nestedset get tree 
Php :: remove index.php from url htaccess 
Php :: laravel create model with migration and controller 
Php :: laravel gigapay create employee 
Php :: php string ends with 
Php :: check if $_files is empty php 
Php :: blade capitalize first letter 
Php :: php remove wordpress shortcodes 
Php :: foreach skip first php 
Php :: strpos in python 
Php :: laravel get path to storage folder 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =