Restrict Content Pro

rcp_has_used_trial()

Coming soon: Restrict Content Pro is becoming Kadence Memberships. You may see both names used while we update the product, documentation, and customer experience.

Note: This content is provided as a resource within our developer documentation. Because custom code requires highly specific implementation, we encourage you to work with a qualified developer if you need guidance. You can find our recommended consultants here: https://codeable.io/developers/restrict-content-pro

Returns whether the user has already used a free trial (or otherwise has the trial-used flag on their account). RCP uses this on registration to block repeat free trials.

Deprecated in 3.0. Prefer RCP_Customer::has_trialed() on the customer from rcp_get_customer_by_user_id(). This wrapper still calls RCP_Member::has_trialed() for backward compatibility.

Parameters

$user_id (int) – User ID. Default: 0 (current logged-in user).

Return values

(bool) – true if the user has trialed; false otherwise.

Examples

if ( rcp_has_used_trial() ) {
	// Hide trial pricing or show upgrade messaging.
}
$customer = rcp_get_customer_by_user_id( $user_id );
if ( $customer && $customer->has_trialed() ) {
	// Preferred check in new code.
}

Compare with rcp_is_trialing() (currently in an active trial on a membership).

Last updated: October 16, 2026
Was this page helpful?
Thanks for the feedback!