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



is_protected_endpoint › WordPress过滤钩子

Since5.2.0
已弃用n/a
apply_filters( 'is_protected_endpoint', false )
参数:
  • (bool) $is_protected_endpoint Whether the currently requested endpoint is protected. Default false.
    Required: Yes
定义在:
文档:

Filters whether the current request is against a protected endpoint.

This filter is only fired when an endpoint is requested which is not already protected by WordPress core. As such, it exclusively allows providing further protected endpoints in addition to the admin backend, login pages and protected Ajax actions.





源码

return (bool) apply_filters( 'is_protected_endpoint', false );