Codex tools: Log in
Languages: English • 한국어 • (Add your language)
Contents |
Verifies that an email is valid.
<?php is_email( $email ) ?>
<?php if ( is_email( 'email@domain.com' ) ) {
echo 'email address is valid.';
} ?>
Does not grok i18n domains. Not RFC compliant.
Since: 0.71
is_email() is located in
wp-includes/formatting.php.
See: Data Validation article for an in-depth discussion of input and output sanitization.