WordPress at a glance
function is not described

validate_email() WP 3.0.0

Deprecated in 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

  • See: is_email()

Changelog

Since 3.0.0 Introduced.
Deprecated Since 3.0.0 Use is_email()

Code of validate_email() WP 5.5.1

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