Created
June 7, 2023 20:45
-
-
Save xardit/6bbfad5fdba6cc12a742590cb034cbef to your computer and use it in GitHub Desktop.
WooCommerce - Change return to shop link, send to homepage instead
This file contains hidden or 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
| <?php | |
| add_filter( 'woocommerce_return_to_shop_redirect', 'mysite_change_return_shop_url' ); | |
| function mysite_change_return_shop_url() { | |
| return home_url(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment