rcp_get_expiration_date( $user_id = 0 )

This function returns the given user's expiration (or renewal) date in a nice format (according to your "date format" settings specified in Settings > General).


  • $user_id (int) (optional) - ID of the user to check. If omitted or set to 0, the ID of the currently logged-in user will be used.

Return values:

  • string - 'none' if the subscription never expires, or a formatted date.
Powered by Zendesk