Skip to content

Commit

Permalink
Merge pull request #33 from dparker1005/mmpu-compatibility
Browse files Browse the repository at this point in the history
Only cancel relevent level on subscription cancellation.
  • Loading branch information
ideadude authored Oct 21, 2022
2 parents f851ba8 + 913fda7 commit 32c9e53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ function pmpro_ccbill_RecurringCancel( $morder ) {

global $pmpro_error;

$worked = pmpro_changeMembershipLevel( false, $morder->user->ID , 'inactive' );
$worked = pmpro_cancelMembershipLevel( $morder->membership_id, $morder->user_id, 'inactive' );

if ( $worked === true ) {
//send an email to the member
Expand Down

0 comments on commit 32c9e53

Please sign in to comment.