How to Remove Unwanted Plugins & Widgets From WordPress Dashboard

x theme

Sometimes you might feel annoying when seeing plugins and other news widgets on the dashboard after login.

But don’t worry we have a handy code snippet for removing “other news” widgets and “plugins” from your WordPress’ dashboard or home screen.

Just paste the code below in functions.php file of your template. After saving the file you won’t see “other news” and “plugins” section in your dashboard.

function remove_plugins_widgets_from_dashboard() {
     global $wp_meta_boxes;
     unset($wp_meta_boxes['dashboard]['normal']['core']['dashboard_plugins']);

     unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
}

add_action('wp_dashboard_setup', 'remove_plugins_widgets_from_dashboard');

Leave a Reply

Your email address will not be published. Required fields are marked *