Deprecated functionality to validate an email address.
$emailstringrequired
$check_domainbooloptional
Default:true
function validate_email( $email, $check_domain = true) {
_deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' );
return is_email( $email, $check_domain );
}
| Version | Description |
|---|---|
| 3.0.0 | Use is_email() |
| MU (3.0.0) | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/validate_email