protected function prepare_links( $taxonomy ) { return array
( 'collection' => array
( 'href' =>
rest_url( sprintf( '%s/%s',
$this->namespace,
$this->rest_base
) ),
),
'https://api.w.org/items' => array
( 'href' =>
rest_url( rest_get_route_for_taxonomy_items( $taxonomy->name
) ),
),
);
} /**
* Retrieves the taxonomy's schema, conforming to JSON Schema.
*
* @since 4.7.0
* @since 5.0.0 The `visibility` property was added.
* @since 5.9.0 The `rest_namespace` property was added.
*
* @return array Item schema data.
*/