Filters whether an email address is valid.
$is_emailstring|false$emailstring$contextstringwp-includes/formatting.php:3563is_email()wp-includes/formatting.php:3569is_email()wp-includes/formatting.php:3581is_email()wp-includes/formatting.php:3590is_email()wp-includes/formatting.php:3596is_email()wp-includes/formatting.php:3605is_email()wp-includes/formatting.php:3613is_email()wp-includes/formatting.php:3619is_email()wp-includes/formatting.php:3625is_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 ( strpos( $email, '@', 1 ) === false ) { /** 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.