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



is_email › WordPress过滤钩子

Since2.8.0
已弃用n/a
› apply_filters( 'is_email', false, $email, 'email_too_short' )
参数: (3)
  • () is_email The email address if successfully passed the is_email() checks, false otherwise.
    Required: Yes
  • () email The email address being checked.
    Required: Yes
  • () context Context under which the email was tested.
    Required: Yes
定义在:
文档:

Filters whether an email address is valid.

This filter is evaluated under several different contexts, such as 'email_too_short', 'email_no_at', 'local_invalid_chars', 'domain_period_sequence', 'domain_period_limits', 'domain_no_periods', 'sub_hyphen_limits', 'sub_invalid_chars', or no specific context.




源码

return apply_filters( 'is_email', false, $email, 'email_too_short' );