validate_email()WP 3.0.0

Deprecated from version 3.0.0. It is no longer supported and can be removed in future releases. Use is_email() instead.

Deprecated functionality to validate an email address.

No Hooks.

Return

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

Changelog

Since 3.0.0 Introduced.
Deprecated since 3.0.0 Use is_email()

validate_email() code WP 6.5.2

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