Skip to content

Instantly share code, notes, and snippets.

@ThomasLeCoz
Created February 24, 2015 08:41
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 ThomasLeCoz/f466735b687937d44638 to your computer and use it in GitHub Desktop.
Save ThomasLeCoz/f466735b687937d44638 to your computer and use it in GitHub Desktop.
My active WCSubs hooks to sell LD Courses by installments
function __construct() {
// [...]
add_action('cancelled_subscription', array($this, 'remove_course_access'), 10, 2);
add_action('subscription_put_on-hold', array($this, 'remove_course_access'), 10, 2);
add_action('activated_subscription', array($this, 'give_course_access'), 10, 2);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment