rcp_has_used_trial()

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.