email_exists WordPress Filter Hook

The email_exists hook allows you to check if an email exists in the WordPress database. This can be useful for making sure that a user is registered before allowing them to login, or for checking if an email exists before sending a password reset link.

apply_filters( 'email_exists', int|false $user_id, string $email ) #

Filters whether the given email exists.


Parameters

$user_id

(int|false)The user ID associated with the email, or false if the email does not exist.

$email

(string)The email to check for existence.


Top ↑

Source

File: wp-includes/user.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
5.6.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More