• Resolved Tom Palmer

    (@tompalmer999)


    Hi,

    I have a multisite network for artists. Jetpack was installed for Photon CDN, and was working great.

    But notices started appearing on subsites when editing pages, invitations to try the WordPress.com editor.

    Is there a way I stop both these, and dashboard ads, from appearing?

    Thanks, Tom

    https://wordpress.org/plugins/jetpack/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    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

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    @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!

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    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.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘removing wordpress.com notices when page editing’ is closed to new replies.