Warning: This function has been deprecated. Use is_email() instead.
validate_email( string $email, bool $check_domain = true ): string|false
Deprecated functionality to validate an email address.
Description
See also
Parameters
-
$email
string Required -
Email address to verify.
-
$check_domain
bool Optional -
Deprecated.
Default:
true
Return
string|false Valid email address on success, false on failure.
Source
File: wp-includes/ms-deprecated.php
.
View all references
function validate_email( $email, $check_domain = true) {
_deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' );
return is_email( $email, $check_domain );
}
Changelog
Version | Description |
---|---|
3.0.0 | Use is_email() |
MU (3.0.0) | Introduced. |