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



pub_priv_sql_capability › WordPress过滤钩子

Since2.2.0
已弃用The hook transitioned from "somewhat useless" to "totally useless".
› $cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );
参数:
  • () cap Capability.
    Required: Yes
定义在:
文档:

Filters the capability to read private posts for a custom post type when generating SQL for getting posts by author.





源码

$cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );