Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

Remove Dashboard Crap of WordPress 3.3

By: a guest on Dec 15th, 2011  |  syntax: PHP  |  size: 0.45 KB  |  hits: 525  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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' );