Created
May 21, 2025 06:51
-
-
Save DeveloperWil/22f2d638abd0bab14839534fcd3df8d5 to your computer and use it in GitHub Desktop.
Client WP Dashboard Makeover Blueprint - Remove Default Dashboard Widgets
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
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