WordPress at Your Fingertips
filter is not described

woocommerce_rest_prepare_report_stock filter-hook . WC 1.0

Filter a report returned from the API.

Allows modification of the report data right before it is returned.

Usage

add_filter( 'woocommerce_rest_prepare_report_stock', 'filter_function_name_4928', 10, 3 );
function filter_function_name_4928( $response, $product, $request ){
	// filter...

	return $response;
}
$response(WP_REST_Response)
The response object.
$product(WC_Product)
The original product object.
$request(WP_REST_Request)
Request used to generate the response.

Where the hook is called

Controller::prepare_item_for_response()
woocommerce/packages/woocommerce-admin/src/API/Reports/Stock/Controller.php 333
return apply_filters( 'woocommerce_rest_prepare_report_stock', $response, $product, $request );

Where in WP core the hook is used WooCommerce

Usage not found.