WordPress at a glance
filter is not described

pub_priv_sql_capability filter-hook . WP 2.2.0

Deprecated in 3.2.0 The hook transitioned from "somewhat useless" to "totally useless".. It is no longer supported and can be removed in future releases. It is recommended to replace this hook with the same one.

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_1610' );
function filter_function_name_1610( $cap ){
	// filter...

	return $cap;
}
$cap(string)
Capability.

Where the hook is called

get_posts_by_author_sql()
pub_priv_sql_capability
wp-includes/post.php 6104
if ( ! $cap = apply_filters( 'pub_priv_sql_capability', '' ) ) {

Where the hook is used (in WP core)

Использование не найдено.