The Post_Queries
interface describes an object that contains queries for posts.
interface Post_Queries {
public function query( array $args ): Post_Query;
}
- Default_Post_Queries: Queries implementation for most cases.
- Enforced_Date_Queries: Queries that enforce a date query.
- Exclude_Queries: Queries that exclude some posts.
- Memoized_Post_Queries: Reuse queries given the same arguments.
- Optimistic_Date_Queries: Speculate (but don't require) that queries can be limited to posts published after the given dates.
- Variable_Post_Queries: Choose queries based on the result of a validation test.