Woo: Hide add to cart pop up

smartsovereign
18 May 2022

If you set up a one page checkout on oxygen or have a sidecart, you don’t want to see this pop up, as people may click it and go to the cart page (which you want to skip altogether), this hides that pop up.

<?php

add_filter( 'wc_add_to_cart_message_html', '__return_null' );

Was this article helpful?

Tags

Categories

Never miss new post again

Subscribe and get list of new posts in your inbox

Click to Copy