apply_filters( "woocommerce_rest_prepare_{$this->taxonomy}", WP_REST_Response $response , object $item , WP_REST_Request $request )
Filter a term item returned from the API.
Description Description
Allows modification of the term data right before it is returned.
Parameters Parameters
- $response
-
The response object.
- $item
-
The original term object.
- $request
-
Request used to generate the response.
Source Source
File: includes/rest-api/Controllers/Version3/class-wc-rest-product-categories-controller.php