Restrict Content Pro

rcp_get_customer_by_user_id()

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 the customer record for a WordPress user ID.

Parameters

$user_id (int) – User ID. Pass 0 for the currently logged-in user.

Return values

RCP_Customer on success, or false if none.

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