Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save bernattorras/a762c3131b3953c4740f09006683f4b6 to your computer and use it in GitHub Desktop.
Save bernattorras/a762c3131b3953c4740f09006683f4b6 to your computer and use it in GitHub Desktop.
Function to execute some code when a subscription is paid
<?php
/**
* Function to execute some code when a subscription is paid
**/
add_action('woocommerce_scheduled_subscription_payment', 'renewal_notifier', 11, 1);
function renewal_notifier($sub_id){
// Your custom functionality
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment