Closed mircobabini closed 1 year ago
Describe the bug Sometimes $cancel_level (fourth param) is not provided into the main hook.
$cancel_level
This causes the ->update query to fail because of the WHERE clause missing the membership_id.
->update
membership_id
Caused by any call of pmpro_changeMembershipLevel with just 3 params, used in place of pmpro_cancelMembershipLevel.
pmpro_changeMembershipLevel
pmpro_cancelMembershipLevel
Example: https://github.com/strangerstudios/paid-memberships-pro/pull/1882/commits/39f5f04074c5ed62d362f8d16f94b84a13bb7c7d
Describe the bug Sometimes
$cancel_level
(fourth param) is not provided into the main hook.This causes the
->update
query to fail because of the WHERE clause missing themembership_id
.