Restrict Content Pro

rcp_is_active()

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

Deprecated since 3.0. Checks whether the user has an active, paid subscription (including trialing). Internally calls rcp_user_has_paid_membership(). Use that function, or rcp_user_has_active_membership() when you need any active membership (including free levels).

Parameters

$user_id (int) – User ID. Default: 0 (current logged-in user when $user_id is empty and the visitor is logged in).

Return values

(bool) – true if the user has an active paid membership (or is trialing), otherwise false.

Examples

if ( rcp_user_has_paid_membership( $user_id ) ) {
	// Paid (or trialing) member.
}
if ( rcp_user_has_active_membership( $user_id ) ) {
	// Any active membership, including free.
}
Last updated: October 9, 2026
Was this page helpful?
Thanks for the feedback!