Tag Archives: idf31a19531fc679b334b0e7c95325d858


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 that can be added to a WHERE clause; this SQL is constructed to allow all published posts, and all private posts to which the user has access.


Continue reading