Changeset 48562
- Timestamp:
- 07/22/2020 11:33:51 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-term-query.php
r48104 r48562 129 129 * @type string $fields Term fields to query for. Accepts: 130 130 * - 'all' Returns an array of complete term objects (`WP_Term[]`). 131 * - 'all_with_object_id' Returns an array of term objects with the 'object_id' 132 * param (`WP_Term[]`). Works only when the `$object_ids` parameter is populated. 131 * - 'all_with_object_id' Returns an array of term objects 132 * with the 'object_id' param (`WP_Term[]`). Works only 133 * when the `$object_ids` parameter is populated. 133 134 * - 'ids' Returns an array of term IDs (`int[]`). 134 135 * - 'tt_ids' Returns an array of term taxonomy IDs (`int[]`). … … 136 137 * - 'slugs' Returns an array of term slugs (`string[]`). 137 138 * - 'count' Returns the number of matching terms (`int`). 138 * - 'id=>parent' Returns an associative array of parent term IDs, keyed by term ID (`int[]`). 139 * - 'id=>name' Returns an associative array of term names, keyed by term ID (`string[]`). 140 * - 'id=>slug' Returns an associative array of term slugs, keyed by term ID (`string[]`). 139 * - 'id=>parent' Returns an associative array of parent term IDs, 140 * keyed by term ID (`int[]`). 141 * - 'id=>name' Returns an associative array of term names, 142 * keyed by term ID (`string[]`). 143 * - 'id=>slug' Returns an associative array of term slugs, 144 * keyed by term ID (`string[]`). 141 145 * Default 'all'. 142 * @type bool $count Whether to return a term count. Will take precedence over `$fields` if true.143 * Default false.146 * @type bool $count Whether to return a term count. If true, will take precedence 147 * over `$fields`. Default false. 144 148 * @type string|array $name Optional. Name or array of names to return term(s) for. 145 149 * Default empty.
Note: See TracChangeset
for help on using the changeset viewer.