W3cubDocs

/WordPress

apply_filters_deprecated( ‘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

$capstring
Capability.

Source

$cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );

Changelog

Version Description
3.2.0 The hook transitioned from "somewhat useless" to "totally useless".
2.2.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pub_priv_sql_capability