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

pub_priv_sql_capability WordPress Hook

The pub_priv_sql_capability hook is used to alter the SQL query that WordPress uses to determine whether a user has the capability to perform a given action.

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

$cap

(string)Capability.


Top ↑

Source

File: wp-includes/post.php

View on Trac



Top ↑

Changelog

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More