Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.