validate_email

函数


validate_email ( $email, $check_domain = true )
参数
  • (string)
    $email
    Email address to verify.
    Required:
  • (bool)
    $check_domain
    Deprecated.
    Required:
    Default: true
返回值
  • (string|false) Valid email address on success, false on failure.
相关
  • is_email()
定义位置
  • wp-includes/ms-deprecated.php
    , line 170
引入
弃用
3.0.0

已启用的验证电子邮件地址的函数。

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