Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Function with a priority of 10
<?php
/**
* Changes the redirect URL for the Return To Shop button in the cart.
*/
function wc_empty_cart_redirect_url() {
return 'http://example.com/category/specials/';
}
add_filter( 'woocommerce_return_to_shop_redirect', 'wc_empty_cart_redirect_url', 10 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment