Created
March 25, 2013 22:57
-
-
Save andregomes/5241630 to your computer and use it in GitHub Desktop.
Remove Dashboard unwanted metaboxes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Remove unwanted dashboard metaboxes | |
add_action('wp_dashboard_setup', 'my_custom_dashboard_widgets'); | |
function my_custom_dashboard_widgets() { | |
global $wp_meta_boxes; | |
//QuickPress | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_quick_press']); | |
//Wordpress Development Blog Feed | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_primary']); | |
//Other Wordpress News Feed | |
unset($wp_meta_boxes['dashboard']['side']['core']['dashboard_secondary']); | |
//Plugins - Popular, New and Recently updated Wordpress Plugins | |
unset($wp_meta_boxes['dashboard']['normal']['core']['dashboard_plugins']); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment