rcp_can_member_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 function is deprecated. Use RCP_Membership->can_renew() instead.

Determines whether or not a member can renew their subscription. The function will return false if all the following criteria apply:

  • The member has an automatically recurring subscription
  • and, the member's account is still active (has not expired)
  • and, the member's status is not "canceled" or "free"

Parameters:

  • $user_id - ID of the user to check. Omit to use the currently logged-in member.

Return values:

  • true if the user can renew their subscription.
  • false if the user cannot renew.
Powered by Zendesk