woocommerce_rest_prepare_report_performance_indicators хук-фильтр . WC 1.0
Filter a report returned from the API.
Allows modification of the report data right before it is returned.
Использование
add_filter( 'woocommerce_rest_prepare_report_performance_indicators', 'filter_function_name_1910', 10, 3 ); function filter_function_name_1910( $response, $report, $request ){ // filter... return $response; }
- $response(WP_REST_Response)
- The response object.
- $report(объект)
- The original report object.
- $request(WP_REST_Request)
- Request used to generate the response.
Где вызывается хук
woocommerce/packages/woocommerce-admin/src/API/Reports/PerformanceIndicators/Controller.php 493
return apply_filters( 'woocommerce_rest_prepare_report_performance_indicators', $response, $stat_data, $request );