Skip to content

Instantly share code, notes, and snippets.

@DanielSantoro
Last active April 5, 2017 21:56
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 DanielSantoro/c86cb072672f95834bd229973a4bb60a to your computer and use it in GitHub Desktop.
Save DanielSantoro/c86cb072672f95834bd229973a4bb60a to your computer and use it in GitHub Desktop.
Function with a priority of 20
<?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', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment