Created
July 5, 2018 17:02
-
-
Save bernattorras/5c283ff266638030b5c902a140d07384 to your computer and use it in GitHub Desktop.
Function to execute some code when a subscription is paid using Stripe gateway
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
<?php | |
/** | |
* Function to execute some code when a subscription is paid using Stripe gateway | |
**/ | |
add_action('woocommerce_scheduled_subscription_payment_stripe', 'renewal_notifier_stripe', 11, 2); | |
function renewal_notifier_stripe($total, $renewal_order){ | |
// Your custom functionality | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment