Created
June 10, 2019 20:19
-
-
Save tharmann/5d882bf433d1158cfa5f80a30aed43a1 to your computer and use it in GitHub Desktop.
WooCommerce Custom "Return to Shop" link on empty 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
<?php | |
function wc_empty_cart_redirect_url() { | |
$url = site_url( '/custom-shop-url/', 'https' ); | |
return $url; | |
} | |
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