Skip to content

Commit

Permalink
Merge pull request #96 from dparker1005/use-cancelMembershipLevel
Browse files Browse the repository at this point in the history
Switching to pmpro_cancelMembershipLevel()
  • Loading branch information
dparker1005 committed Aug 14, 2023
2 parents 1465d0c + 87de3e1 commit f0908d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pmpro-pay-by-check.php
Original file line number Diff line number Diff line change
Expand Up @@ -1180,7 +1180,7 @@ function pmpropbc_cancel_overdue_orders()
do_action("pmpro_membership_pre_membership_expiry", $order->user_id, $order->membership_id );

//remove their membership
pmpro_changeMembershipLevel(false, $order->user_id, 'expired');
pmpro_cancelMembershipLevel( $order->membership_id, $order->user_id, 'expired' );

// Update the order.
$order->status = 'error';
Expand Down

0 comments on commit f0908d8

Please sign in to comment.