The Post_Query
interface describes an object that contains a single query for posts.
interface Post_Query extends Post_IDs {
public function query_object(): WP_Query;
public function post_objects(): array;
}
- Global_Post_Query: Post_Query for a query in
$GLOBALS
. - Post_IDs_Query: Query from post IDs.
- WP_Query_Envelope: Post_Query from an existing query.