Created
August 21, 2012 01:04
-
-
Save davemac/3410174 to your computer and use it in GitHub Desktop.
WP Remove unwanted dashboard items
This file contains hidden or 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 items | |
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