validate_email()
Deprecated since 3.0.0. It is no longer supported and may be removed in future releases. Use is_email() instead.
Deprecated functionality to validate an email address.
No Hooks.
Returns
String|false
. Valid email address on success, false on failure.
Usage
validate_email( $email, $check_domain );
- $email(string) (required)
- Email address to verify.
- $check_domain(true|false)
- Deprecated.
Default: true
Notes
- See: is_email()
Changelog
Since 3.0.0 | Introduced. |
Deprecated since 3.0.0 | Use is_email() |
validate_email() validate email code WP 6.8.1
function validate_email( $email, $check_domain = true) { _deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' ); return is_email( $email, $check_domain ); }