Restrict Content Pro

rcp_get_status()

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. Returns a subscription status string for a user via the legacy RCP_Member object. If the user is expired, this can update their status to expired.

For RCP 3.0+, read status on a specific RCP_Membership record instead (for example RCP_Membership::get_status() on the membership you care about).

Parameters

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

Return values

(string) – Status slug (for example active, expired, cancelled, pending).

Examples

$status = rcp_get_status( get_current_user_id() );

Preferred approach (specific membership):

$membership = rcp_get_membership( 123 );
if ( $membership ) {
	$status = $membership->get_status();
}
Last updated: October 9, 2026
Was this page helpful?
Thanks for the feedback!