Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Created January 9, 2018 10:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leewillis77/0f92ecfcda07fdfa510dfa4e5663fdd9 to your computer and use it in GitHub Desktop.
Save leewillis77/0f92ecfcda07fdfa510dfa4e5663fdd9 to your computer and use it in GitHub Desktop.
Redirect to cart from cart recovery emails : https://wp-cart-recovery.com
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