Skip to content

Instantly share code, notes, and snippets.

@LaurenaRehbein
Last active March 19, 2019 17:12
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/8b371cb339b0fc46fd9d3d162e286de7 to your computer and use it in GitHub Desktop.
Save LaurenaRehbein/8b371cb339b0fc46fd9d3d162e286de7 to your computer and use it in GitHub Desktop.
To redirect to a specific page other than "shop".
/**
* // Custom redirect for users after clicking 'return to shop'
**/
add_filter('woocommerce_return_to_shop_redirect', 'lr_wc_return_to_shop_redirect');
function lr_wc_return_to_shop_redirect( $redirect ) {
$redirect = '/products/donation/';
return $redirect;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment