Restrict Content Pro
rcp_is_pending_verification()
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 whether the user’s customer record has email verification status pending (Require email verification in RCP settings). Loads the customer via rcp_get_customer_by_user_id().
Parameters
$user_id (int) – User ID. Default: 0 (current logged-in user).
Return values
(bool) – true if the customer exists and is pending verification; false if not pending, if there is no customer, or if $user_id is empty and nobody is logged in.
Examples
if ( rcp_is_pending_verification() ) {
// Current user must verify email before full access.
}
if ( rcp_is_pending_verification( $user_id ) ) {
// Show verification notice or block template logic.
}
Related filter: rcp_require_email_verification (Email settings). Customer method: RCP_Customer::is_pending_verification().