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.
(string)The email to check for existence.
Source
File: wp-includes/user.php
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |