SHARE
TWEET

Remove Dashboard Crap of WordPress 3.3

a guest Dec 15th, 2011 690 Never
  1. // Remove Wordpress 3.3 Dashboard Crap
  2. function dashboard_tweaks() {
  3.         global $wp_admin_bar;
  4.         $wp_admin_bar->remove_menu('wp-logo');
  5.         $wp_admin_bar->remove_menu('about');
  6.         $wp_admin_bar->remove_menu('wporg');
  7.         $wp_admin_bar->remove_menu('documentation');
  8.         $wp_admin_bar->remove_menu('support-forums');
  9.         $wp_admin_bar->remove_menu('feedback');
  10.         $wp_admin_bar->remove_menu('view-site');
  11. }
  12. add_action( 'wp_before_admin_bar_render', 'dashboard_tweaks' );
RAW Paste Data
Top