WordPress at Your Fingertips
filter is not described

woocommerce_rest_prepare_product_attribute filter-hook . WC 1.0

Filter a attribute item returned from the API.

Allows modification of the product attribute data right before it is returned.


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

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

Where the hook is called

woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-product-attributes-v1-controller.php 452
return apply_filters( 'woocommerce_rest_prepare_product_attribute', $response, $item, $request );

Where in WP core the hook is used WooCommerce

Usage not found.