Last active
August 8, 2023 19:30
-
-
Save bekarice/45bffcb8c3e03523af19 to your computer and use it in GitHub Desktop.
Change WooCommerce return to shop URL
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
// Tutorial: http://www.skyverge.com/blog/change-woocommerce-return-to-shop-button/ | |
function skyverge_change_empty_cart_button_url() { | |
return get_site_url(); | |
//Can use any page instead, like return '/sample-page/'; | |
} | |
add_filter( 'woocommerce_return_to_shop_redirect', 'skyverge_change_empty_cart_button_url' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment