×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Text
Posted by: Elton Disner
Added: Nov 3, 2017 11:38 PM
Views: 2
Tags: adminbar
  1.  
  2. function alterar_admin_bar( $admin_bar ) {
  3.     $admin_bar->remove_menu( 'wp-logo' );
  4.     $admin_bar->remove_node( 'new-content' );
  5.     $admin_bar->remove_menu( 'edit' );
  6.     $admin_bar->remove_menu( 'updates' );
  7.     $admin_bar->remove_menu( 'search' );
  8.     $admin_bar->remove_menu( 'comments' );
  9.     $admin_bar->remove_node( 'site-name' );
  10.     $admin_bar->remove_node( 'my-account' );
  11.     return $admin_bar;
  12.  
  13. }
  14. add_action( 'admin_bar_menu', 'alterar_admin_bar', 99 );