-
-
Save raulillana/8366643 to your computer and use it in GitHub Desktop.
WordPress remove unwanted dashboard items
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
<?php | |
add_action('wp_dashboard_setup', 'prefix_custom_dashboard_widgets'); | |
/** remove unwanted dashboard items */ | |
function prefix_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