email_exists filter-hook . WP 5.6.0
Filters whether the given email exists.
Usage
add_filter( 'email_exists', 'filter_function_name_1699', 10, 2 ); function filter_function_name_1699( $user_id, $email ){ // filter... return $user_id; }
- $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.
Changelog
Since 5.6.0 | Introduced. |
Where the hook is called
email_exists
wp-includes/user.php 1650
return apply_filters( 'email_exists', $user_id, $email );