rcp_is_trialing()

This function has been deprecated. Use RCP_Membership->is_trialing() instead.

rcp_is_trialing( $user_id = 0 )

This function can be used to determine whether or not a given user is currently in the middle of a free trial subscription.

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 user is currently on a trial subscription.
  • false if the user is not on a trial subscription, or their trial has expired.