Created
June 17, 2017 17:50
-
-
Save alexwcoleman/0a6370b3fa5e2632146be4b5ef8e944c to your computer and use it in GitHub Desktop.
Disable WordPress Events and News Dashboard Widget
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
// Disable WordPress Events and News Dashboard Widget | |
function awc_remove() { | |
remove_meta_box( 'dashboard_primary', get_current_screen(), 'side' ); | |
} | |
add_action( 'wp_network_dashboard_setup', 'awc_remove', 20 ); | |
add_action( 'wp_user_dashboard_setup', 'awc_remove', 20 ); | |
add_action( 'wp_dashboard_setup', 'awc_remove', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment