Created
January 15, 2015 16:49
-
-
Save MindyPostoff/00f623326db4daa50394 to your computer and use it in GitHub Desktop.
Custom URL for the Continue Shopping button in WooCommerce Cart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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