Is there a way I stop both these, and dashboard ads, from appearing?
If you click on the little ‘x’ icon appearing on the right of the notices, all the notices will be dismissed forever.
If you’d rather do it via code, you can add the following code to your theme’s functions.php file, or in a functionality plugin:
add_filter( 'jetpack_just_in_time_msgs', '__return_false', 99 );
I’d like to do this via code but that filter is not working for me (neither in functions.php nor in a plugin.
I’m perplexed as to why it’s not working, I tried
https://gist.github.com/jb510/b174e27b6b33e9aabf42aa77086bb788
@jb510 That’s weird; I just tested again and the filter works well for me, inserted as is in a functionality plugin. Are we talking about the same notices? They look like this:
https://i.jeremy.hu/jitm.png
@jeherve thanks for checking.
Yes they look exactly like that and I’ve tried it in a functionality plugin both bare and hooked to plugins_loaded, then in a theme functions.php file.
I reloaded the core update page and that banner just kept showing up every time, but I’ll give it another try. Sound like user error on my part, I just don’t know what I did wrong. If it’s really persistent across installs I’ll put an issue in on GH.
thanks again!
I’ve tried it in a functionality plugin both bare and hooked to plugins_loaded
Did you do something like this in your plugin?
function fancy_plugin() {
add_filter( 'jetpack_just_in_time_msgs', '__return_false', 99 );
}
add_action( 'plugins_loaded', 'fancy_plugin' );
If so, what if you do this instead?
add_filter( 'jetpack_just_in_time_msgs', '__return_false', 99 );
If that works, don’t hesitate to update your Facebook post as well, so folks know that they can get plugin support in the support forums. 🙂
-
This reply was modified 7 years, 2 months ago by Jeremy Herve.