A WordPress-centric search engine for devs and theme authors



validate_email ›

Since3.0.0
Deprecated3.0.0
validate_email ( $email, $check_domain = true )
Parameters: (2)
  • (string) $email Email address to verify.
    Required: Yes
  • (bool) $check_domain Deprecated.
    Required: No
    Default: true
See:
Returns:
  • (string|bool) Either false or the valid email address.
Defined at:
Codex:
Change Log:
  • MU

Deprecated functionality to validate an email address.



Source

function validate_email( $email, $check_domain = true) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'is_email()' );
	return is_email( $email, $check_domain );
}