rcp_has_used_trial()

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 has been deprecated. Use RCP_Customer->has_trialed() instead.

rcp_has_used_trial( $user_id = 0 )

This function determines whether or not the given user has used up their free trial. Each user may only sign up for one free trial.

Parameters:

  • $user_id (int) (optional) - The ID of the user to check. If omitted, the ID of the currently logged-in user is used.

Return values:

  • true if the given user has signed up for a free trial at some point.
  • false if the user has never signed up for a free trial.
Powered by Zendesk