WP_REST_Post_Format_Search_Handler::prepare_item_links() WordPress Method
The WP_REST_Post_Format_Search_Handler::prepare_item_links() method is used to prepare links for each post format object when queried from the REST API. This is used to create links for the search results page.
WP_REST_Post_Format_Search_Handler::prepare_item_links( string $id ) #
Prepares links for the search result.
Contents
Parameters
- $id
(string)(Required)Item ID, the post format slug.
Return
(array) Links for the given item.
Source
File: wp-includes/rest-api/search/class-wp-rest-post-format-search-handler.php
public function prepare_item_links( $id ) { return array(); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |