This hook has been deprecated. The hook transitioned from "somewhat useless" to "totally useless" instead.

apply_filters( 'pub_priv_sql_capability', string $cap )

Filters the capability to read private posts for a custom post type when generating SQL for getting posts by author.


Parameters

$cap

(string) Capability.


Source

File: wp-includes/post.php

View on GitHub



Changelog

Changelog
Version Description
WP-3.2.0 The hook transitioned from "somewhat useless" to "totally useless".
WP-2.2.0 Introduced. This hook has been deprecated. The hook transitioned from "somewhat useless" to "totally useless" instead.