1

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!

3
  • 2
    codex.wordpress.org/…
    – soulseekah
    Apr 2, 2012 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' ); Apr 2, 2012 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, 2012 at 18:04

1 Answer 1

3

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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