Warning: This function has been deprecated. Use is_email() instead.

validate_email( string $email, bool $check_domain = true )

Deprecated functionality to validate an email address.

Description Description

See also See also

Top ↑

Parameters Parameters


(string) (Required) Email address to verify.


(bool) (Optional) Deprecated.

Default value: true

Top ↑

Return Return

(string|bool) Either false or the valid email address.

Top ↑

Source Source

File: wp-includes/ms-deprecated.php

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

Top ↑

Changelog Changelog

Version Description
3.0.0 Use is_email()
MU (3.0.0) Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.