rcp_can_member_renew()

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

  • 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 "cancelled" 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.