pub_priv_sql_capability

pub_priv_sql_capability

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-5.3.2

apply_filters('pub_priv_sql_capability') is found 1 times:

  • /wp-includes/post.php line 6331
    		 * @deprecated 3.2.0 The hook transitioned from "somewhat useless" to "totally useless".
    		 *
    		 * @param string $cap Capability.
    		 */
    		$cap = apply_filters( 'pub_priv_sql_capability', '' );
    		if ( ! $cap ) {
    			$cap = current_user_can( $post_type_obj->cap->read_private_posts );
    		}
    
    		// Only need to check the cap if $public_only is false.
    		$post_status_sql = "post_status = 'publish'";