This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php
.
Use
any of these functions instead.
Description
Validates an email address using a regular expression and optionally makes a DNS request to check the domain.
Replace With
Parameters
- $email
- (string) (required) The email address you would like to validate.
- Default: None
- $check_domain
- (boolean) (optional) Whether or not to make a DNS request to validate the domain.
- Default: true
Return Values
- (boolean)
- True on success, false on failure.
Usage
<?php validate_email($email, $check_domain); ?>
Change Log