W3cubDocs

/WordPress

WP_REST_Post_Format_Search_Handler::prepare_item_links( string $id ): array

Prepares links for the search result.

Parameters

$idstringrequired
Item ID, the post format slug.

Return

array Links for the given item.

Source

public function prepare_item_links( $id ) {
	return array();
}

Changelog

Version Description
5.6.0 Introduced.

© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_post_format_search_handler/prepare_item_links