Filters the term data for a REST API response.
$responseWP_REST_Response$itemWP_Term$requestWP_REST_Requestwp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php:149WP_REST_Menus_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php:906WP_REST_Terms_Controller::prepare_item_for_response()wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php:976WP_REST_Terms_Controller::prepare_item_for_response() * @since 4.7.0 * * @param WP_REST_Response $response The response object. * @param WP_Term $item The original term object. * @param WP_REST_Request $request Request used to generate the response. */ return apply_filters( "rest_prepare_{$this->taxonomy}", $response, $item, $request ); } /** * Prepares links for the request. * * @since 4.7.0Introduced in 4.7.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.