WordPress开发者和主题制作者的搜索引擎



validate_email ›

Since3.0.0
已弃用3.0.0
validate_email ( $email, $check_domain = true )
参数: (2)
  • (string) $email Email address to verify.
    Required: Yes
  • (bool) $check_domain Deprecated.
    Required: No
    默认: true
查看:
返回:
  • (string|bool) Either false or the valid email address.
定义在:
文档:
Change Log:
  • MU

Deprecated functionality to validate an email address.



源码

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