rcp_membership_can_renew

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/
This filter replaced rcp_member_can_renew in version 3.0.
Filters whether or not a membership can be renewed. This will false if:

The membership is free.
The membership never expires.
The membership is part of a payment plan and it has been completed (reached the maximum number of billing times).
or, the membership is recurring and the status is “active”.

Parameters:

$can_renew (bool) – Whether or not the membership can be renewed.

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

$membership (RCP_Membership) – Membership object.

Have more questions?

Submit a request