rcp_is_pending_verification( $user_id = 0 )

This function checks if a user is pending email verification (see this article). It will return true if the member has not yet confirmed their email address. It will return false if the user has already confirmed it.


  • $user_id - ID of the user to check. If omitted, it users the ID of the current logged in user.

Return values:

  • true if the given user has not confirmed their email address.
  • false if the given user has confirmed their email address.

Example usage:

if ( rcp_is_active() && ! rcp_is_pending_verification() ) {
    // The current user has an active account and has verified their email address.
Powered by Zendesk