Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Remove WordPress Dashboard Widgets

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Remove WordPress Dashboard Widgets

Have you ever worked on a project which required you to customize the display of the WordPress admin panel? Well one of the first things consultants customize is the WordPress Dashboard. We showed you a quick example of how to add custom dashboard widgets in WordPress. In this article, we will show you how to remove WordPress dashboard widgets.

Note: If you ended up on this article looking for how to remove dashboard widgets just for yourself, then you should probably look at our article: How to Customize WordPress Admin Area (Dashboard) for Beginners

All you have to do is simply paste the following code in your theme’s functions.php file. Although it maybe a good idea to save this file as a plugin and make it a drop-in plugin.

function remove_dashboard_widgets() {
	global $wp_meta_boxes;



add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

Each of the widgets listed above are pretty self-explanatory. You can keep the ones you want by simply removing them from the list. If you want to remove these widgets from all users except for admins, then just change the last line to this:

if (!current_user_can('manage_options')) {
	add_action('wp_dashboard_setup', 'remove_dashboard_widgets' );

We hope that this article helped you remove the default dashboard widgets in WordPress.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Rogerio Lopes says:

    Something similar to remove Myspace Widget from dashboard…?

  2. Joan says:

    Only 5 are valid now:

    update_user_meta( get_current_user_id(), 'show_welcome_panel', false );
    remove_meta_box( 'dashboard_activity', 'dashboard', 'normal');
  3. Nick Haskins says:

    WP 3.8 adds an activity box. Remove it like so;

    remove_meta_box( ‘dashboard_activity’, ‘dashboard’, ‘normal’);

  4. Tim says:

    Hello Mr Staff,
    Fancy your parents calling you Editorial :-)

    Very useful site guys.
    I have just tried this code on WP 3.7.1. and it still works… almost
    Posted in all the above but I still have Recent Drafts showing and the first large main meta-box, no idea what this box is called. Could you perhaps post the line of code needed if possible? thanks.

  5. Hasan says:

    Thank you !

  6. omannay says:

    Hey. Thanks for the article; very helpful.
    One thing to fix, however: dashboard_recent_drafts is not in ‘normal’. It is in ‘side’.
    It’s great to be able to disable these extras for clients.
    Appreciate the help your site has provided as I learn to really control WordPress.

  7. Adam says:

    Very good. Thanks for sharing!

    • Adam says:

      That’s funny. I made a comment on this post 3 years ago! Here’s a better way of removing unneeded dashboard widgets:

      • WPBeginner Support says:

        Adam, this article is about removing Dashboard widgets not the widgets on the front-end of your site. These widgets appear in the main Dashboard screen of your WordPress admin area.

        • Adam says:

          Dang, you’re right. I copied the wrong link. Here’s the correct one I meant to reference:

        • WPBeginner Support says:

          Adam, thanks we got your point. If you look at the article, in the second paragraph we have mentioned a link to the tutorial which shows the method you pointed out. Clicking on Screen Options and hiding widgets is handy when you just want to hide widgets for yourself. The code presented in this article, will hide the widgets for all users who have access to the admin area.

        • Adam says:

          @WPBeginner Support – The 2nd link I sent does not demonstrate hiding widgets with the Screen Options tab in the WordPress admin. It shows a different method, utilizing the WordPress API. Not to worry, your article has been useful.

  8. jpelker says:

    @keithybhoy Members by Justin Tadlock:

  9. keithybhoy says:

    Hi, thanks for sharing. I would like to give a user with an Editor role access to the Widgets area in the admin panel, any recommendation of which plugin to use for this?

  10. easyP says:

    Thanks boys.

    I learn something everytime I visit..

  11. wpbeginner says:

    @jpelker Unfortunately, we don’t provide custom codes like that.

  12. jpelker says:

    @wpbeginner It’s for all users. Would you be interested in solving this and providing the code?

  13. wpbeginner says:

    @jpelker If it is just for your user, you can turn it off under screen settings… If not then, you would have to look into what action he is using, and then remove that action.

  14. jpelker says:

    How do you remove third-party widgets, i.e. Yoast’s news widget that displays when you install his SEO plugin?

  15. jengraph says:

    Great, thanks for clarifying!

  16. wpbeginner says:

    @jengraph You are editing your theme’s functions.php file… Not the core functions.php file. Your theme will never change during the core upgrade.

  17. jengraph says:

    I always wondered when we make these modifications, to functions, other files. What happens when we upgrade WP?? How does one remember all the modifications they made with each version?

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.