Filters a taxonomy returned from the REST API.
$responseWP_REST_Response$itemWP_Taxonomy$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php:220WP_REST_Taxonomies_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-taxonomies-controller.php:301WP_REST_Taxonomies_Controller::prepare_item_for_response() * @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. */ return apply_filters( 'rest_prepare_taxonomy', $response, $taxonomy, $request ); } /** * Prepares links for the request. * * @since 6.1.0Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.