Skip to content

Instantly share code, notes, and snippets.

@jb510
Last active February 7, 2017 07:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jb510/b174e27b6b33e9aabf42aa77086bb788 to your computer and use it in GitHub Desktop.
Save jb510/b174e27b6b33e9aabf42aa77086bb788 to your computer and use it in GitHub Desktop.
Disable JetPack Admin Nags
/** (not working code)
* Disable JetPack Nags
*
* @since 1.2.0
*/
function s9_disable_jetpack_nags() {
remove_action( 'admin_notices', array( 'Jetpack_JITM', 'backups_updates_msg' ) );
remove_action( 'admin_notices', array( 'Jetpack_JITM', 'akismet_msg' ) );
}
add_action( 'plugins_loaded', 's9_disable_jetpack_nags', 99 ); // This didn't work
// Per Jeremey's post, here: https://wordpress.org/support/topic/removing-wordpresscom-notices-when-page-editing/
add_filter( 'jetpack_just_in_time_msgs', '__return_false', 99 ); // This didn't work either
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment