Created
July 5, 2021 16:30
-
-
Save MrJoshFisher/329c8b556269ed5797b22b4f305eb926 to your computer and use it in GitHub Desktop.
[Chnage return to shop url] #wordpress
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
function store_mall_wc_empty_cart_redirect_url() { | |
$url = 'http://example.com/sample-page'; // change this link to your need | |
return esc_url( $url ); | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'store_mall_wc_empty_cart_redirect_url' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment