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