Last active
February 7, 2017 07:17
-
-
Save jb510/b174e27b6b33e9aabf42aa77086bb788 to your computer and use it in GitHub Desktop.
Disable JetPack Admin Nags
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
/** (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