Snippet: Remove some dashboard metabox(es)

By default WordPress shows metaboxes inside its admin dashboard which include incoming links, plugin feeds and etc. If you want to disable them it can be easily done by using the below code.

Add following code to “functions.php”

Snippet

add_action('wp_dashboard_setup', 'remove_dashboard_metaboxes');
function remove_dashboard_metaboxes() {
   global $wp_meta_boxes;

   // Remove three dashboard metaboxes...
   unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']);
   unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']);
   unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']);
} 

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>