Here’s a quick snippet to disable those (annoying) WooCommerce ads that show in the footer of the “New Order” email (which goes to admins): “Process your orders on the go. Get the app.“
The code is a little different from what you find online, let me know if it works!
PHP Snippet: Disable “Process your orders on the go. Get the app” Text Ad @ WooCommerce New Order Emails
/**
* @snippet Hide "Get the app" Ads @ WooCommerce Emails
* @how-to businessbloomer.com/woocommerce-customization
* @author Rodolfo Melogli, Business Bloomer
* @compatible WooCommerce 9
* @community https://businessbloomer.com/club/
*/
add_action( 'woocommerce_email_footer', 'bbloomer_remove_get_the_app_ad', 8 );
function bbloomer_remove_get_the_app_ad() {
$mailer = WC()->mailer()->get_emails();
$object = $mailer['WC_Email_New_Order'];
remove_action( 'woocommerce_email_footer', array( $object, 'mobile_messaging' ), 9 );
}
Unfortunately the script is not working, tried both the version in the article and both the version from Sylvie, but the message is still there…anyone has an updated version? I will try to do some string replacement and remove the message in the translation.
Sylvie’s fix works perfectly, I updated the snippet with her code, try again please
Hello, the snippet did nothing, as the action to remove is only inside the WC_Email_New_Order Class. I had to change it to :
Appreciate that, let’s see if more people confirm this and in case I’ll update the snippet
Did not work for WP 6.1.1. Shucks!
Screenshot, please?
Hook does not work anymore. It used to.
WP Versio 6.3.1 and Jetpack Versio 12.5
https://snipboard.io/IrVsOM.jpg
Hello, that’s not inside the WooCommerce plugin, so it must be a Jetpack plugin thing. Other than that, I confirm the “jetpack_just_in_time_msgs” filter does not exist any longer in WooCommerce, so I will publish an update here asap
Update – I had the code in my functions.php already and it has been working, but now the Jetpack ads have returned with a vengeance. This time it is an “Connect Jetpack to activate WooCommerce Shipping & Tax”
Ouch. Do you use the “WooCommerce Services” plugin? If not, simply disable it. If yes, I’m sure there is a way of hiding that, let me know
Still seeing this on my end as well with the snippet in functions.php. We DO NOT have the Jetpack plugin installed either, which makes it a bit odd…
Can you do a test with https://wordpress.org/plugins/disable-dashboard-for-woocommerce/? If it works with that plugin, I can reverse-engineer which function you should use
Yes it worked fine. I placed at the bottom of the PHP file, well below the <?.
Stephen
Nice!
Hi,
it seems that itΒ΄s not working anymore in woocommerce 3.7.
Anyway to fix this ? Also, is it not enough to deactivate “Woocommerce Services” ?
Thanks,
Jorge Correia
Was it working on previous versions for you? I don’t see any JP ads on my end on 3.7
Great suggestion – thank you for making this easier for me – it is driving my clients mad seeing these and creating confusion. Clients think they need this or that added every time they get into the back end of their site. I’m all for simplicity and a streamlined flow.
Nice!
Looks like with Jetpack 7.5.3 this no longer works – I see a pinterest ad right now.
Not sure… I don’t think Jetpack has anything to do with Pinterest?
This is apparently working in general, but does not seem to stop the ads in Opera browser.
Perhaps it handles the PHP differently?
I don’t think so… try clearing Opera cookies/cache
Would be nice with an article about why JetPack should be used at all. It’s been reported over and over pretty much everywhere that it slows your site down. I would never even go near it.
Hey Jessica, thanks for your message! I use it on this same website, and by activating only the “modules” I need, it does not slow it down. JetPack is totally fine to use and because it’s Automattic’s property, they’re also very responsive with support. Give it a go π
Why not just click the little x on the right hand side? Works for me.
Good point John, but I noticed even if I click on “x” the ads and future ads keep coming back after a while π
Because then after a week a new one can pop up.
Using the suggested code above you’ll never see annoying ads like this again… (until they change the code/filter/function)