On this page
apply_filters_deprecated( 'pub_priv_sql_capability', string $cap )
This hook has been deprecated. The hook transitioned from "somewhat useless" to "totally useless" instead.
Filters the capability to read private posts for a custom post type when generating SQL for getting posts by author.
Parameters
$capstring-
Capability.
Source
File: wp-includes/post.php. View all references
$cap = apply_filters_deprecated( 'pub_priv_sql_capability', array( '' ), '3.2.0' );
Related
Used By
| Used By | Description |
|---|---|
| get_posts_by_author_sql() wp-includes/post.php | Retrieves the post SQL based on capability, author, and type. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/pub_priv_sql_capability