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



wp_is_site_protected_by_basic_auth › WordPress过滤钩子

Since5.6.1
已弃用n/a
apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context )
参数: (2)
  • (bool) $is_protected Whether the site is protected by Basic Auth.
    Required: Yes
  • (string) $context The context to check for protection. One of 'login', 'admin', or 'front'.
    Required: Yes
定义在:
文档:

Filters whether a site is protected by HTTP Basic Auth.





源码

return apply_filters( 'wp_is_site_protected_by_basic_auth', $is_protected, $context );