Changeset 51299 for trunk/src/wp-includes/class-wp-term-query.php
- Timestamp:
- 07/01/2021 09:09:04 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r51298 r51299 95 95 * @type string|array $taxonomy Taxonomy name, or array of taxonomies, to which results should 96 96 * be limited. 97 * @type int|int[] $object_ids O ptional. Object ID, or array of object IDs. Results will be97 * @type int|int[] $object_ids Object ID, or array of object IDs. Results will be 98 98 * limited to terms associated with these objects. 99 99 * @type string $orderby Field(s) to order terms by. Accepts: 100 * * term fields ('name', 'slug', 'term_group', 'term_id', 'id',100 * * Term fields ('name', 'slug', 'term_group', 'term_id', 'id', 101 101 * 'description', 'parent', 'term_order'). Unless `$object_ids` 102 102 * is not empty, 'term_order' is treated the same as 'term_id'. 103 103 * * 'count' to use the number of objects associated with the term. 104 * * 'include' to match the 'order' of the $include param. 105 * * 'slug__in' to match the 'order' of the $slug param. 106 * * 'meta_value', 'meta_value_num'. 107 * the value of `$meta_key`. 108 * the array keys of `$meta_query`. 104 * * 'include' to match the 'order' of the `$include` param. 105 * * 'slug__in' to match the 'order' of the `$slug` param. 106 * * 'meta_value' 107 * * 'meta_value_num'. 108 * * The value of `$meta_key`. 109 * * The array keys of `$meta_query`. 109 110 * * 'none' to omit the ORDER BY clause. 110 * Default s to'name'.111 * Default 'name'. 111 112 * @type string $order Whether to order terms in ascending or descending order. 112 113 * Accepts 'ASC' (ascending) or 'DESC' (descending). … … 117 118 * Default empty array. 118 119 * @type int[]|string $exclude Array or comma/space-separated string of term IDs to exclude. 119 * If $include is non-empty, $excludeis ignored.120 * If `$include` is non-empty, `$exclude` is ignored. 120 121 * Default empty array. 121 122 * @type int[]|string $exclude_tree Array or comma/space-separated string of term IDs to exclude 122 * along with all of their descendant terms. If $includeis123 * non-empty, $exclude_treeis ignored. Default empty array.123 * along with all of their descendant terms. If `$include` is 124 * non-empty, `$exclude_tree` is ignored. Default empty array. 124 125 * @type int|string $number Maximum number of terms to return. Accepts ''|0 (all) or any 125 126 * positive number. Default ''|0 (all). Note that $number may 126 * not return accurate results when coupled with $object_ids.127 * not return accurate results when coupled with `$object_ids`. 127 128 * See #41796 for details. 128 129 * @type int $offset The number by which to offset the terms query. Default empty. … … 146 147 * @type bool $count Whether to return a term count. If true, will take precedence 147 148 * over `$fields`. Default false. 148 * @type string|array $name Optional.Name or array of names to return term(s) for.149 * @type string|array $name Name or array of names to return term(s) for. 149 150 * Default empty. 150 * @type string|array $slug Optional.Slug or array of slugs to return term(s) for.151 * @type string|array $slug Slug or array of slugs to return term(s) for. 151 152 * Default empty. 152 * @type int|int[] $term_taxonomy_id Optional.Term taxonomy ID, or array of term taxonomy IDs,153 * @type int|int[] $term_taxonomy_id Term taxonomy ID, or array of term taxonomy IDs, 153 154 * to match when querying terms. 154 155 * @type bool $hierarchical Whether to include terms that have non-empty descendants 155 * (even if $hide_emptyis set to true). Default true.156 * (even if `$hide_empty` is set to true). Default true. 156 157 * @type string $search Search criteria to match terms. Will be SQL-formatted with 157 158 * wildcards before and after. Default empty. … … 164 165 * Default false. 165 166 * @type string $get Whether to return terms regardless of ancestry or whether the 166 * terms are empty. Accepts 'all' or empty(disabled).167 * Default empty.167 * terms are empty. Accepts 'all' or '' (disabled). 168 * Default ''. 168 169 * @type int $child_of Term ID to retrieve child terms of. If multiple taxonomies 169 170 * are passed, `$child_of` is ignored. Default 0. … … 174 175 * Default false. 175 176 * @type string $cache_domain Unique cache key to be produced when this query is stored in 176 * an object cache. Default is'core'.177 * an object cache. Default 'core'. 177 178 * @type bool $update_term_meta_cache Whether to prime meta caches for matched terms. Default true. 178 * @type array $meta_query Optional.Meta query clauses to limit retrieved terms by.179 * @type array $meta_query Meta query clauses to limit retrieved terms by. 179 180 * See `WP_Meta_Query`. Default empty. 180 181 * @type string $meta_key Limit terms to those matching a specific metadata key.
Note: See TracChangeset
for help on using the changeset viewer.