wpseek.com
A WordPress-centric search engine for devs and theme authors



pub_priv_sql_capability › WordPress Filter Hooks

Since2.2.0
DeprecatedThe hook transitioned from "somewhat useless" to "totally useless".
$cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );
Parameters:
  • () 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

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