WP_REST_Post_Format_Search_Handler::prepare_item_links( string $id )
Prepares links for the search result.
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(); }
Changelog
Version | Description |
---|---|
5.6.0 | Introduced. |
© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_post_format_search_handler/prepare_item_links