The dynamic portion of the hook name, $this->taxonomy, refers to the taxonomy slug. Possible hook names include: <ul> <li>rest_prepare_category</li> <li>rest_prepare_post_tag</li> </ul> Allows modification of the term data right before it is returned.
938* @since 4.7.0939*940* @param WP_REST_Response$response The response object.941* @param WP_Term$item The original term object.942* @param WP_REST_Request$request Request used to generate the response.943*/944returnapply_filters("rest_prepare_{$this->taxonomy}",$response,$item,$request);945}946947/**948* Prepares links for the request.949*950* @since 4.7.0
History
Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.