WP_Term_Query
Class used for querying terms.
Class used for querying terms.
Constructor.
Format response depending on field requested.
Used internally to generate a SQL string related to the ‘search’ parameter.
Retrieves the query results.
Parse an ‘order’ query variable and cast it to ASC or DESC as necessary.
Parse and sanitize ‘orderby’ keys passed to the term query.
Generate the ORDER BY clause for an ‘orderby’ param that is potentially related to a meta query.
Parse arguments passed to the term query with default query parameters.
Creates an array of term objects from an array of term IDs.