- Timestamp:
- 02/16/2024 09:33:02 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php
r54123 r57643 37 37 38 38 /** 39 * Searches t he object type contentfor a given search request.39 * Searches terms for a given search request. 40 40 * 41 41 * @since 5.6.0 … … 45 45 * Associative array containing found IDs and total count for the matching search results. 46 46 * 47 * @type int[] $ids Found IDs.47 * @type int[] $ids Found term IDs. 48 48 * @type string|int|WP_Error $total Numeric string containing the number of terms in that 49 49 * taxonomy, 0 if there are no results, or WP_Error if … … 80 80 81 81 /** 82 * Filters the query arguments for a REST API search request.82 * Filters the query arguments for a REST API term search request. 83 83 * 84 84 * Enables adding extra arguments or setting defaults for a term search request. … … 111 111 112 112 /** 113 * Prepares the search result for a given ID.113 * Prepares the search result for a given term ID. 114 114 * 115 115 * @since 5.6.0 116 116 * 117 * @param int $id Item ID. 118 * @param array $fields Fields to include for the item. 119 * @return array Associative array containing all fields for the item. 117 * @param int $id Term ID. 118 * @param array $fields Fields to include for the term. 119 * @return array { 120 * Associative array containing fields for the term based on the `$fields` parameter. 121 * 122 * @type int $id Optional. Term ID. 123 * @type string $title Optional. Term name. 124 * @type string $url Optional. Term permalink URL. 125 * @type string $type Optional. Term taxonomy name. 126 * } 120 127 */ 121 128 public function prepare_item( $id, array $fields ) {
Note: See TracChangeset
for help on using the changeset viewer.