get_private_posts_cap_sql()
最后更新于:2021-11-26 23:17:51
get_private_posts_cap_sql( string|array$post_type)Retrieve the private post SQL based on capability.
参数
- $post_type
-
(string|array) (Required) Single post type or an array of post types. Currently only supports ‘post’ or ‘page’.
响应
(string) SQL code that can be added to a where clause.
源文件
文件: gc-includes/post.php
function get_private_posts_cap_sql( $post_type ) {
return get_posts_by_author_sql( $post_type, false );
}