rcp_set_membership_status_value

Note: This is part of the developer docs and is considered custom code.
Unfortunately, we cannot provide support for custom code at this time as we do not have the additional resources that would be necessary to provide support for custom code.

If you need assistance with this, please reach out to our list of consultants for further assistance:
https://codeable.io/developers/restrict-content-pro/
Triggers when a membership status is being changed. This filter allows you to change the value of the new status before it is changed in the database.
Parameters:

$new_status (string) – New status being set (‘active’, ‘expired’, etc.).

$old_status (string) – Old status from before the change. (Technically the current status, as the status has not yet been edited.)

$membership_id (int) – ID of the membership being edited.

$membership (RCP_Membership) – Membership object.

Have more questions?

Submit a request