WordPress at a glance
filter is not described

rest_prepare_taxonomy filter-hook . WP 4.7.0

Filters a taxonomy returned from the REST API.

Allows modification of the taxonomy data right before it is returned.


add_filter( 'rest_prepare_taxonomy', 'filter_function_name_5069', 10, 3 );
function filter_function_name_5069( $response, $item, $request ){
	// filter...

	return $response;
The response object.
The original taxonomy object.
Request used to generate the response.

Where the hook is called

wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php 258
return apply_filters( 'rest_prepare_taxonomy', $response, $taxonomy, $request );

Where the hook is used (in WP core)

Does not used.