- Timestamp:
- 08/11/2022 02:01:35 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/search/class-wp-rest-term-search-handler.php
r49955 r53877 42 42 * 43 43 * @param WP_REST_Request $request Full REST request. 44 * @return array Associative array containing an `WP_REST_Search_Handler::RESULT_IDS` containing 45 * an array of found IDs and `WP_REST_Search_Handler::RESULT_TOTAL` containing the 46 * total count for the matching search results. 44 * @return array { 45 * Associative array containing found IDs and total count for the matching search results. 46 * 47 * @type int[] $ids Found IDs. 48 * @type string|int|WP_Error $total Numeric string containing the number of terms in that 49 * taxonomy, 0 if there are no results, or WP_Error if 50 * the requested taxonomy does not exist. 51 * } 47 52 */ 48 53 public function search_items( WP_REST_Request $request ) { … … 133 138 * 134 139 * @param int $id Item ID. 135 * @return array Links for the given item.140 * @return array[] Array of link arrays for the given item. 136 141 */ 137 142 public function prepare_item_links( $id ) {
Note: See TracChangeset
for help on using the changeset viewer.