Filter hook 'rest_prepare_taxonomy'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php at line 291

Description

Filters a taxonomy returned from the REST API. Allows modification of the taxonomy data right before it is returned.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php 291

Parameters

Type Name Description
WP_REST_Response $response The response object.
WP_Taxonomy $item The original taxonomy object.
WP_REST_Request $request Request used to generate the response.

PHP Doc

/**
		 * Filters a taxonomy returned from the REST API.
		 *
		 * Allows modification of the taxonomy data right before it is returned.
		 *
		 * @since 4.7.0
		 *
		 * @param WP_REST_Response $response The response object.
		 * @param WP_Taxonomy      $item     The original taxonomy object.
		 * @param WP_REST_Request  $request  Request used to generate the response.
		 */