Created
February 25, 2016 22:03
-
-
Save stuart-lambon/a05cf4af7dc7ff0d2a45 to your computer and use it in GitHub Desktop.
Change the WooCommerce ‘Return to shop’ link
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
/* Change the WooCommerce ‘Return to shop’ link */ | |
function change_return_to_shop_link() { | |
// return to homepage | |
return get_home_url(); | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'change_return_to_shop_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment