Skip to content

Instantly share code, notes, and snippets.

@MindyPostoff
Created January 15, 2015 16:49
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save MindyPostoff/00f623326db4daa50394 to your computer and use it in GitHub Desktop.
Custom URL for the Continue Shopping button in WooCommerce Cart
/**
* Redirect the Continue Shopping URL from the default (most recent product) to
* a custom URL.
* Place this code snippet in your theme's functions.php file.
*/
function custom_continue_shopping_redirect_url ( $url ) {
$url = "http://www.woothemes.com"; // Add your link here
return $url;
}
add_filter('woocommerce_continue_shopping_redirect', 'custom_continue_shopping_redirect_url');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment