Created
April 10, 2019 17:40
-
-
Save Asikur22/43262af7e1187d06bb3296fa8f122cda to your computer and use it in GitHub Desktop.
[Remove WordPress Dashboard Widget] #AdminView
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 WordPress Dashboard Widget | |
*/ | |
function remove_dashboard_widgets() { | |
remove_meta_box( 'dashboard_quick_press', 'dashboard', 'side' ); //Quick Press widget | |
remove_meta_box( 'dashboard_recent_drafts', 'dashboard', 'side' ); //Recent Drafts | |
remove_meta_box( 'dashboard_primary', 'dashboard', 'side' ); //WordPress.com Blog | |
remove_meta_box( 'dashboard_secondary', 'dashboard', 'side' ); //Other WordPress News | |
remove_meta_box( 'dashboard_incoming_links', 'dashboard', 'normal' ); //Incoming Links | |
remove_meta_box( 'dashboard_plugins', 'dashboard', 'normal' ); //Plugins | |
remove_meta_box( 'dashboard_right_now', 'dashboard', 'normal' ); //Right Now | |
remove_meta_box( 'rg_forms_dashboard', 'dashboard', 'normal' ); //Gravity Forms | |
remove_meta_box( 'dashboard_recent_comments', 'dashboard', 'normal' ); //Recent Comments | |
remove_meta_box( 'icl_dashboard_widget', 'dashboard', 'normal' ); //Multi Language Plugin | |
remove_meta_box( 'dashboard_activity', 'dashboard', 'normal' ); //Activity | |
remove_action( 'welcome_panel', 'wp_welcome_panel' ); | |
} | |
add_action( 'wp_dashboard_setup', 'remove_dashboard_widgets' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment