On this page
WP_REST_Search_Handler::prepare_item_links( int|string $id ): array
Prepares links for the search result of a given ID.
Parameters
$idint|string Required-
Item ID.
Return
array Links for the given item.
Source
File: wp-includes/rest-api/search/class-wp-rest-search-handler.php. View all references
abstract public function prepare_item_links( $id );
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_search_handler/prepare_item_links