pub_priv_sql_capability filter-hook . WP 2.2.0
Deprecated in from version 3.2.0. It is no longer supported and can be removed in future releases. Use less" to "totally useless
instead.
Deprecated: 3.2.0 The hook transitioned from "somewhat useless" to "totally useless".
Filters the capability to read private posts for a custom post type when generating SQL for getting posts by author.
Usage
add_filter( 'pub_priv_sql_capability', 'filter_function_name_1921', 10, 2 ); function filter_function_name_1921( $cap, $string ){ // filter... return $cap; }
- $cap(string)
- Capability.
- $string
- -
Changelog
Since 2.2.0 | Introduced. | |
Deprecated Since 3.2.0 | The hook transitioned from "somewhat useless" to "totally useless". |
Where the hook is called
pub_priv_sql_capability
wp-includes/post.php 6696
$cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );