Last active
June 21, 2019 21:40
Change the Continue Shopping link on the WooCommerce Cart page
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 | |
/** | |
* Return the permalink of the shop page for the continue shopping redirect filter | |
* | |
* @param string $return_to | |
* @return string | |
*/ | |
function my_woocommerce_continue_shopping_redirect( $return_to ) { | |
return get_permalink( wc_get_page_id( 'shop' ) ); | |
} | |
add_filter( 'woocommerce_continue_shopping_redirect', 'my_woocommerce_continue_shopping_redirect', 20 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment