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.


add_filter( 'pub_priv_sql_capability', 'filter_function_name_8396' );
function filter_function_name_8396( $cap ){
	// filter...

	return $cap;


Since DEL 3.2.0 Introduced.

Where the hook is called

wp-includes/post.php 6331
$cap = apply_filters( 'pub_priv_sql_capability', '' );

Where the hook is used (in WP core)

Usage not found!