Skip to content

Instantly share code, notes, and snippets.

@tharmann
Created June 10, 2019 20:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tharmann/5d882bf433d1158cfa5f80a30aed43a1 to your computer and use it in GitHub Desktop.
Save tharmann/5d882bf433d1158cfa5f80a30aed43a1 to your computer and use it in GitHub Desktop.
WooCommerce Custom "Return to Shop" link on empty cart
<?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