Changeset 50614 for trunk/src/wp-includes/class-wp-term-query.php
- Timestamp:
- 03/29/2021 09:33:32 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r50395 r50614 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 * -'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`.109 * -'none' to omit the ORDER BY clause.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`. 109 * * 'none' to omit the ORDER BY clause. 110 110 * Defaults to 'name'. 111 111 * @type string $order Whether to order terms in ascending or descending order. … … 128 128 * @type int $offset The number by which to offset the terms query. Default empty. 129 129 * @type string $fields Term fields to query for. Accepts: 130 * -'all' Returns an array of complete term objects (`WP_Term[]`).131 * -'all_with_object_id' Returns an array of term objects130 * * 'all' Returns an array of complete term objects (`WP_Term[]`). 131 * * 'all_with_object_id' Returns an array of term objects 132 132 * with the 'object_id' param (`WP_Term[]`). Works only 133 133 * when the `$object_ids` parameter is populated. 134 * -'ids' Returns an array of term IDs (`int[]`).135 * -'tt_ids' Returns an array of term taxonomy IDs (`int[]`).136 * -'names' Returns an array of term names (`string[]`).137 * -'slugs' Returns an array of term slugs (`string[]`).138 * -'count' Returns the number of matching terms (`int`).139 * -'id=>parent' Returns an associative array of parent term IDs,134 * * 'ids' Returns an array of term IDs (`int[]`). 135 * * 'tt_ids' Returns an array of term taxonomy IDs (`int[]`). 136 * * 'names' Returns an array of term names (`string[]`). 137 * * 'slugs' Returns an array of term slugs (`string[]`). 138 * * 'count' Returns the number of matching terms (`int`). 139 * * 'id=>parent' Returns an associative array of parent term IDs, 140 140 * keyed by term ID (`int[]`). 141 * -'id=>name' Returns an associative array of term names,141 * * 'id=>name' Returns an associative array of term names, 142 142 * keyed by term ID (`string[]`). 143 * -'id=>slug' Returns an associative array of term slugs,143 * * 'id=>slug' Returns an associative array of term slugs, 144 144 * keyed by term ID (`string[]`). 145 145 * Default 'all'.
Note: See TracChangeset
for help on using the changeset viewer.