Created
July 17, 2019 17:04
-
-
Save karlazz/de3aeaea6dad086ce362227bccdbffd4 to your computer and use it in GitHub Desktop.
remove 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
// https://deluxeblogtips.com/remove-dashboard-widgets-in-wordpress/ | |
add_action('admin_init', 'rw_remove_dashboard_widgets'); | |
function rw_remove_dashboard_widgets() { | |
remove_meta_box('dashboard_right_now', 'dashboard', 'normal'); // right now | |
remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal'); // recent comments | |
remove_meta_box('dashboard_incoming_links', 'dashboard', 'normal'); // incoming links | |
remove_meta_box('dashboard_plugins', 'dashboard', 'normal'); // plugins | |
remove_meta_box('dashboard_quick_press', 'dashboard', 'normal'); // quick press | |
remove_meta_box('dashboard_recent_drafts', 'dashboard', 'normal'); // recent drafts | |
remove_meta_box('dashboard_primary', 'dashboard', 'normal'); // wordpress blog | |
remove_meta_box('dashboard_secondary', 'dashboard', 'normal'); // other wordpress news | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment