WordPress at Your Fingertips
function is not described

WP_REST_Post_Format_Search_Handler::prepare_item_links() public WP 5.6.0

Prepares links for the search result.

{} It's a method of the class: WP_REST_Post_Format_Search_Handler{}

No Hooks.


Array. Links for the given item.


$WP_REST_Post_Format_Search_Handler = new WP_REST_Post_Format_Search_Handler();
$WP_REST_Post_Format_Search_Handler->prepare_item_links( $id );
$id(string) (required)
Item ID, the post format slug.

Code of WP_REST_Post_Format_Search_Handler::prepare_item_links() WP 5.8.3

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