Skip to content

Instantly share code, notes, and snippets.

@alexwcoleman
Created June 17, 2017 17:50
Show Gist options
  • Save alexwcoleman/0a6370b3fa5e2632146be4b5ef8e944c to your computer and use it in GitHub Desktop.
Save alexwcoleman/0a6370b3fa5e2632146be4b5ef8e944c to your computer and use it in GitHub Desktop.
Disable WordPress Events and News Dashboard Widget
// 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