Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save DeveloperWil/22f2d638abd0bab14839534fcd3df8d5 to your computer and use it in GitHub Desktop.
Save DeveloperWil/22f2d638abd0bab14839534fcd3df8d5 to your computer and use it in GitHub Desktop.
Client WP Dashboard Makeover Blueprint - Remove Default Dashboard Widgets
function remove_default_dashboard_widgets() {
remove_meta_box('dashboard_primary', 'dashboard', 'side');
remove_meta_box('dashboard_quick_press', 'dashboard', 'side');
remove_meta_box('dashboard_activity', 'dashboard', 'normal');
}
add_action('wp_dashboard_setup', 'remove_default_dashboard_widgets');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment