On this page
apply_filters( 'is_email', string|false $is_email, string $email, string $context )
Filters whether an email address is valid.
Description
This filter is evaluated under several different contexts, such as ’email_too_short’, ’email_no_at’, ‘local_invalid_chars’, ‘domain_period_sequence’, ‘domain_period_limits’, ‘domain_no_periods’, ‘sub_hyphen_limits’, ‘sub_invalid_chars’, or no specific context.
Parameters
$is_emailstring|false-
The email address if successfully passed the is_email() checks, false otherwise.
$emailstring-
The email address being checked.
$contextstring-
Context under which the email was tested.
Source
File: wp-includes/formatting.php. View all references
return apply_filters( 'is_email', false, $email, 'email_too_short' );
Related
Used By
| Used By | Description |
|---|---|
| is_email() wp-includes/formatting.php | Verifies that an email is valid. |
Changelog
| Version | Description |
|---|---|
| 2.8.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/is_email