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:
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.
- $user_id (int) (optional) - The ID of the user to check. If omitted, the ID of the currently logged-in user is used.
trueif the user is currently on a trial subscription.
falseif the user is not on a trial subscription, or their trial has expired.