Created
January 9, 2018 10:55
-
-
Save leewillis77/0f92ecfcda07fdfa510dfa4e5663fdd9 to your computer and use it in GitHub Desktop.
Redirect to cart from cart recovery emails : https://wp-cart-recovery.com
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
function lw_crfw_return_redirect_url( $redirect_url, $cart ) { | |
if ( ! function_exists( 'wc_get_cart_url' ) ) { | |
WC()->frontend_includes(); | |
} | |
return wc_get_cart_url(); | |
} | |
add_action( 'crfw_return_redirect_url', 'lw_crfw_return_redirect_url', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment