WordPress Admin – Strip Widgets From the Admin Dashboard

How to Strip Menu / Widgets form The Admin Dashboard

We manage a lot of clients WordPress dashboards and over the years we try and restrict access to not required widgets so our clients can not tinker with core widgets.

Implementation

1. Either code and paste the code into your themes functions.php or child theme
2. If you are not that technical then install the WordPress Snippets plugin


* @snippet  WordPress Admin - Strip Widgets From the Admin Dashboard
 * @code    https://techskilled.co.uk/snippets/wordpress-admin-strip-widgets-from-the-admin-dashboard
 * @author  https://techskilled.co.uk
 */

function disable_default_dashboard_widgets() {
   remove_meta_box(‘dashboard_primary’, ‘dashboard’, ‘core’);
   remove_meta_box(‘dashboard_right_now’, ‘dashboard’, ‘core’);
   remove_meta_box(‘dashboard_plugins’, ‘dashboard’, ‘core’);
   remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘core’);
   remove_meta_box(‘dashboard_incoming_links’, ‘dashboard’, ‘core’);
   remove_meta_box(‘dashboard_quick_press’, ‘dashboard’, ‘core’);
}

add_action(‘admin_menu’, ‘disable_default_dashboard_widgets’);

NEED HELP?

If you are struggling to implement the SVG snippet then we can help from £9.99 – use our contact form below and we will get straight back to you!

HELP ME IMPLEMENT THIS SNIPPET

Leave a comment

Shares