Skip to content

Instantly share code, notes, and snippets.

@LaurenaRehbein
Created February 28, 2019 20:08
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 LaurenaRehbein/a977fcc5705d3f1887303d9752fc6f86 to your computer and use it in GitHub Desktop.
Save LaurenaRehbein/a977fcc5705d3f1887303d9752fc6f86 to your computer and use it in GitHub Desktop.
Use this filter if you want customers to be redirected to a specific URL when they click "Continue Shopping"
<?php
// 'Continue Shopping' button re-direct
add_filter('woocommerce_continue_shopping_redirect', 'lar_wc_continue_shopping_redirect');
function lar_wc_continue_shopping_redirect( $redirect ) {
$redirect = 'http://yoururl.com/';
return $redirect;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment