Restrict Content Pro

rcp_get_subscription_details()

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

Loads a membership level by ID. Despite the name, this is not a user subscription object.

Deprecated in 3.4. Calls _deprecated_function() and delegates to rcp_get_membership_level( $id ).

Parameters

$id (int) – Membership level ID.

Return values

(object|false) – Membership level object on success, false on failure (same as rcp_get_membership_level()).

Examples

$level = rcp_get_membership_level( 2 );

if ( $level ) {
	$price = $level->get_price();
}
// Legacy call — triggers deprecation notice in debug:
$level = rcp_get_subscription_details( 2 );

Do not confuse with rcp_get_subscription() (user’s level name) or rcp_get_membership() (a user’s membership record).

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