Filters a sanitized email address.
$sanitized_emailstring$emailstring$messagestring|nullwp-includes/formatting.php:3847sanitize_email()wp-includes/formatting.php:3853sanitize_email()wp-includes/formatting.php:3866sanitize_email()wp-includes/formatting.php:3876sanitize_email()wp-includes/formatting.php:3883sanitize_email()wp-includes/formatting.php:3892sanitize_email()wp-includes/formatting.php:3915sanitize_email()wp-includes/formatting.php:3926sanitize_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 ( false === strpos( $email, '@', 1 ) ) { /** 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.