Created
March 1, 2018 07:03
-
-
Save zakirsajib/670e5f05a9c15f73fb62e0be99e6b0c8 to your computer and use it in GitHub Desktop.
Disable WordPress Events and News widget from the dashboard
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 wp_remove() { | |
remove_meta_box( 'dashboard_primary', get_current_screen(), 'side' ); | |
} | |
add_action( 'wp_network_dashboard_setup', 'wp_remove', 20 ); | |
add_action( 'wp_user_dashboard_setup', 'wp_remove', 20 ); | |
add_action( 'wp_dashboard_setup', 'wp_remove', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment