WordPress.org

Ready to get started?Download WordPress

Codex

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.

Contents

Description

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

Replace With

Parameters

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

Return Values

(boolean) 
True on success, false on failure.

Usage

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

Change Log