Remove a plugin meta box from the dashboard

I found that this works:

add_action('admin_init', 'rw_remove_dashboard_widgets');
function rw_remove_dashboard_widgets() {
   remove_meta_box('wpdm_dashboard_widget', 'dashboard', 'normal');
}

I guess ‘admin_init’ is the key, so that it runs before the dashboard is loaded.

Leave a Comment