Created
July 15, 2024 20:02
-
-
Save rocketgeek/d101813a81e4a5548c88466bf2b57fca to your computer and use it in GitHub Desktop.
Membership renew direct to checkout
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 // do not include this line. | |
add_filter( 'wpmem_wc_renew_url', function( $url, $product_id, $key ) { | |
global $woocommerce; | |
$url = $woocommerce->cart->get_checkout_url(); | |
return $url; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment