Created
January 17, 2018 10:17
-
-
Save hedqvist/cf05dfd14c13a9cac5af6d926850ea5e to your computer and use it in GitHub Desktop.
Change 'Return to shop' from cart
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
<? | |
/** | |
* @snippet WooCommerce - Changes return to shop redirect that usually appears on cart-page via functions.php | |
* @author Redlight Media AB / Christopher Hedqvist | |
* @compatible WooCommerce 3.2.5 | |
*/ | |
function redlight_wc_cart_to_shop_redirect_url() { | |
return 'https://example.com/your-page/'; | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'redlight_wc_cart_to_shop_redirect_url' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment