WordPress at a glance
filter is not described

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_1091', 10, 2 );
function filter_function_name_1091( $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

get_posts_by_author_sql()
pub_priv_sql_capability
wp-includes/post.php 6562
$cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );

Where in WP core the hook is used WordPress

Usage not found.