WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Платформа для конвертации и монетизации трафика
фильтр не описан

woocommerce_api_report_response хук-фильтр . WC 1.0

Использование

add_filter( 'woocommerce_api_report_response', 'filter_function_name_8236', 10, 4 );
function filter_function_name_8236( $sales_data, $report, $fields, $server ){
	// filter...

	return $sales_data;
}
$sales_data
-
$report
-
$fields
-
$server
-

Где вызывается хук

WC_API_Reports::get_sales_report()
woocommerce_api_report_response
WC_API_Reports::get_top_sellers_report()
woocommerce_api_report_response
woocommerce/includes/legacy/api/v1/class-wc-api-reports.php 355
return array( 'sales' => apply_filters( 'woocommerce_api_report_response', $sales_data, $this->report, $fields, $this->server ) );
woocommerce/includes/legacy/api/v1/class-wc-api-reports.php 413
return array( 'top_sellers' => apply_filters( 'woocommerce_api_report_response', $top_sellers_data, $this->report, $fields, $this->server ) );
woocommerce/includes/legacy/api/v2/class-wc-api-reports.php 197
return array( 'sales' => apply_filters( 'woocommerce_api_report_response', $sales_data, $this->report, $fields, $this->server ) );
woocommerce/includes/legacy/api/v2/class-wc-api-reports.php 257
return array( 'top_sellers' => apply_filters( 'woocommerce_api_report_response', $top_sellers_data, $this->report, $fields, $this->server ) );
woocommerce/includes/legacy/api/v3/class-wc-api-reports.php 197
return array( 'sales' => apply_filters( 'woocommerce_api_report_response', $sales_data, $this->report, $fields, $this->server ) );
woocommerce/includes/legacy/api/v3/class-wc-api-reports.php 257
return array( 'top_sellers' => apply_filters( 'woocommerce_api_report_response', $top_sellers_data, $this->report, $fields, $this->server ) );

Где используется хук в ядре WooCommerce

woocommerce/includes/legacy/api/v1/class-wc-api-reports.php 31
add_filter( 'woocommerce_api_report_response', array( $this, 'format_sales_report_data' ), 100 );