apply_filters( 'woocommerce_rest_prepare_product_attribute', WP_REST_Response $response , object $item , WP_REST_Request $request )
Filter a attribute item returned from the API.
Description Description
Allows modification of the product attribute data right before it is returned.
Parameters Parameters
- $response
-
The response object.
- $item
-
The original attribute object.
- $request
-
Request used to generate the response.
Source Source
File: includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php