Filters a sanitized email address.
$sanitized_emailstring$emailstring$messagestring|nullwp-includes/formatting.php:3777sanitize_email()wp-includes/formatting.php:3783sanitize_email()wp-includes/formatting.php:3796sanitize_email()wp-includes/formatting.php:3806sanitize_email()wp-includes/formatting.php:3813sanitize_email()wp-includes/formatting.php:3822sanitize_email()wp-includes/formatting.php:3845sanitize_email()wp-includes/formatting.php:3856sanitize_email() * @since 2.8.0 * * @param string $sanitized_email The sanitized email address. * @param string $email The email address, as provided to sanitize_email(). * @param string|null $message A message to pass to the user. null if email is sanitized. */ return apply_filters( 'sanitize_email', '', $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( 'sanitize_email', '', $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.