Skip to content

Commit

Permalink
Only cancel relevent level on sub cancellation
Browse files Browse the repository at this point in the history
  • Loading branch information
dparker1005 committed Oct 21, 2022
1 parent e89d554 commit 5c9faf0
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 @@ -202,7 +202,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 5c9faf0

Please sign in to comment.