Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

WPMU Functions/validate email

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.


Validates an email address using a regular expression and optionally makes a DNS request to check the domain.

Replace With


(string) (required) The email address you would like to validate.
Default: None
(boolean) (optional) Whether or not to make a DNS request to validate the domain.
Default: true

Return Values

True on success, false on failure.


<?php validate_email($email$check_domain); ?> 

Change Log