apply_filters_deprecated( ‘pub_priv_sql_capability’, string $cap )

In this article

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

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

Changelog

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.