WordPress at Your Fingertips
filter is not described

woocommerce_rest_prepare_report_top_sellers filter-hook . WC 1.0

Filter a report top sellers returned from the API.

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


add_filter( 'woocommerce_rest_prepare_report_top_sellers', 'filter_function_name_2736', 10, 3 );
function filter_function_name_2736( $response, $top_seller, $request ){
	// filter...

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

Where the hook is called

woocommerce/includes/rest-api/Controllers/Version1/class-wc-rest-report-top-sellers-v1-controller.php 137
return apply_filters( 'woocommerce_rest_prepare_report_top_sellers', $response, $top_seller, $request );

Where in WP core the hook is used WooCommerce

Usage not found.