validate_email() - WordPress 函数参考中文文档

返回介绍

validate_email()

发布于 2017-09-11 字数1432 浏览 922 评论 0

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.


描述


参数

$email

(string)
(Required)
Email address to verify.

$check_domain

(bool)
(Optional)
Deprecated.

Default value: true


返回值

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


源代码

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 );
}

更新日志

Version 描述
3.0.0 Use is_email()
MU Introduced.

相关函数

Uses

  • wp-includes/formatting.php:
    is_email()
  • wp-includes/functions.php:
    _deprecated_function()

User Contributed Notes

上一篇:validate_current_theme()

下一篇:validate_file()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!