WP_REST_Menu_Items_Controller8b7c:f320:99b9:690f:4595:cd17:293a:c069get_schema_links(): array  Retrieves Link Description Objects that should be added to the Schema for the posts collection.   Return array    Source  File: wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php. View all references  protected function get_schema_links() {
	$links   = parent8b7c:f320:99b9:690f:4595:cd17:293a:c069get_schema_links();
	$href    = rest_url( "{$this->namespace}/{$this->rest_base}/{id}" );
	$links[] = array(
		'rel'          => 'https://api.w.org/menu-item-object',
		'title'        => __( 'Get linked object.' ),
		'href'         => $href,
		'targetSchema' => array(
			'type'       => 'object',
			'properties' => array(
				'object' => array(
					'type' => 'integer',
				),
			),
		),
	);

	return $links;
}
   Related  Uses    Uses Description      WP_REST_Posts_Controller8b7c:f320:99b9:690f:4595:cd17:293a:c069get_schema_links() wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php   Retrieves Link Description Objects that should be added to the Schema for the posts collection.     rest_url() wp-includes/rest-api.php   Retrieves the URL to a REST endpoint.     __() wp-includes/l10n.php   Retrieves the translation of $text.   
   Used By    Used By Description      WP_REST_Menu_Items_Controller8b7c:f320:99b9:690f:4595:cd17:293a:c069get_item_schema() wp-includes/rest-api/endpoints/class-wp-rest-menu-items-controller.php   Retrieves the term’s schema, conforming to JSON Schema.   
    Changelog    Version Description     5.9.0 Introduced.    

    
{'path': 'public/docs/wordpress/classes/wp_rest_menu_items_controller/get_schema_links.html', 'source': 'DevDocs.IO'}