rcp_member_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 was deprecated in version 3.0 Use rcp_membership_can_renew instead.

Filters whether or not a member is able to renew their subscription. This should usually return false if:

  • The user's current subscription is free.
  • or, the member already has a recurring subscription and their subscription status is "active".

Parameters:

  • $can_renew (bool) - Whether or not the user is able to renew their subscription.
  • $user_id  (int) - ID of the user being checked.
Powered by Zendesk