Last active
July 6, 2024 17:51
-
-
Save shameemreza/3f2785125b3738900e825ea5d638cc21 to your computer and use it in GitHub Desktop.
Remove add to cart URL parameter after a product has been added to the cart in WooCommerce.
This file contains hidden or 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
add_filter( 'woocommerce_add_to_cart_redirect', 'wp_get_referer' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment