Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Another noob question...when authors log on and access their Dashboard, they see all sorts of widgets such as an Internet Explorer warning, news on what's going on with WordPress.

Is there anyway to remove all of these for all users (present and future), so that they only see the 'Quick Press' & 'Right Now' widgets?

Thanks!

share|improve this question
2  
codex.wordpress.org/… –  soulseekah Apr 2 '12 at 17:48
    
Thanks I just tried it now..but it didnt remove the widgets... // Create the function to use in the action hook function example_remove_dashboard_widgets() { remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); } // Hoook into the 'wp_dashboard_setup' action to register our function add_action('wp_dashboard_setup', 'example_remove_dashboard_widgets' ); –  AshesToAshes Apr 2 '12 at 18:03
    
Please paste the code you tried and more details on how you're using it in your answer, please. –  soulseekah Apr 2 '12 at 18:04

1 Answer 1

I think the best way to go about this is to create a new plugin (or put in the theme function.php but a plugin will always work independent of theme) that disables the widgets you don't need. Something like this.

function wpse_47707_disable_admin_meta() {
    remove_meta_box( 'dashboard_browser_nag', 'dashboard', 'normal' );
    remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' );
    remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' );

}

add_action( 'wp_dashboard_setup', 'wpse_47707_disable_admin_meta' );

See The Codex Page for more info on meta boxes

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.