A WordPress-centric search engine for devs and theme authors



pub_priv_sql_capability ›

Since2.2.0
Deprecated
apply_filters( 'pub_priv_sql_capability', '' )
Parameters:
  • (string) $cap Capability.
    Required: Yes
Defined at:
Codex:

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





Source

if ( ! $cap = apply_filters( 'pub_priv_sql_capability', '' ) ) {