SHARE
TWEET

Remove Widgets

a guest Nov 23rd, 2011 448 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function remove_dashboard_widgets() {
  2.         global $wp_meta_boxes;
  3.        
  4.         print_r($wp_meta_boxes['dashboard']);
  5.         // Find the widget you want to remove and unset() it
  6. }
  7.  
  8. function your_admin_init() {
  9.         add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );
  10. }
  11. add_action("admin_init", "your_admin_init");
  12.  
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top