Forked from jamiemarsland/gist:5ee8f104bc6b19ca8e14d1414549c508
Created
October 24, 2018 21:16
-
-
Save hasinhayder/148d1a7abdf8d9e33fabe9efb9e45e45 to your computer and use it in GitHub Desktop.
Change the WooCommerce 'return to shop' button link (with thanks to Nicola Mustone)
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
/** | |
* Changes the redirect URL for the Return To Shop button in the cart. | |
* | |
* @return string | |
*/ | |
function wc_empty_cart_redirect_url() { | |
return 'http://yourdomain.com/your-page/'; | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment