hitchhackerguide.com
get_private_posts_cap_sql
Retrieve the private post SQL based on capability.This function provides a standardized way to appropriately select on the post_status of a post type. The function will return a piece of SQL code …