WPDev.one
Core Function
View Source on Trac ↗

get_private_posts_cap_sql()

get_private_posts_cap_sql( mixed $post_type )

Retrieves the private post SQL based on capability.

Parameters 1 required

Name / Type Description
(string

| array) $post_type Single post type or an array of post types. Currently only supports 'post' or 'page'.

Required

Return Value

(string)
SQL code that can be added to a where clause.

Function Information

Since Version
2.2.0
Source File
wp-includes/post.php
Advertisement