Filters whether an email address is valid.
$is_emailstring|false$emailstring$contextstringwp-includes/formatting.php:3562is_email()wp-includes/formatting.php:3568is_email()wp-includes/formatting.php:3580is_email()wp-includes/formatting.php:3589is_email()wp-includes/formatting.php:3595is_email()wp-includes/formatting.php:3604is_email()wp-includes/formatting.php:3612is_email()wp-includes/formatting.php:3618is_email()wp-includes/formatting.php:3624is_email() * @since 2.8.0 * * @param string|false $is_email The email address if successfully passed the is_email() checks, false otherwise. * @param string $email The email address being checked. * @param string $context Context under which the email was tested. */ return apply_filters( 'is_email', false, $email, 'email_too_short' ); } // Test for an @ character after the first position. if ( false === strpos( $email, '@', 1 ) ) { /** This filter is documented in wp-includes/formatting.php */ return apply_filters( 'is_email', false, $email, 'email_no_at' );Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.