Skip to content

Instantly share code, notes, and snippets.

@woogist
Created February 11, 2015 10:00
Embed
What would you like to do?
Changes the redirect URL for the Return To Shop button in the cart.
/**
* Changes the redirect URL for the Return To Shop button in the cart.
*
* @return string
*/
function wc_empty_cart_redirect_url() {
return 'http://yourdomain.com/your-page/';
}
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