Restrict Content Pro

rcp_get_members_of_subscription()

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 users on a given membership level by calling rcp_get_members() with an empty status (no status filter) and the level ID.

Deprecated in 3.0. Prefer rcp_get_memberships() with object_id.

The $fields parameter is not used in current RCP code (legacy signature only).

Parameters

$id (int) – Membership level ID. Default: 1.

$fields (string|array) – Unused. Default: 'ID'.

Return values

(array|false) – Same as rcp_get_members( '', $id ).

Examples

$users = rcp_get_members_of_subscription( 3 );

$memberships = rcp_get_memberships( array( 'object_id' => 3 ) );
Last updated: October 30, 2026
Was this page helpful?
Thanks for the feedback!