Last active
March 19, 2019 17:12
-
-
Save LaurenaRehbein/8b371cb339b0fc46fd9d3d162e286de7 to your computer and use it in GitHub Desktop.
To redirect to a specific page other than "shop".
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
/** | |
* // 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