woocommerce_rest_prepare_report_coupons_count 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_coupons_count', 'filter_function_name_2169', 10, 3 ); function filter_function_name_2169( $response, $report, $request ){ // filter... return $response; }
- $response(WP_REST_Response)
- The response object.
- $report(object)
- The original report object.
- $request(WP_REST_Request)
- Request used to generate the response.
Where the hook is called
woocommerce_rest_prepare_report_coupons_count
woocommerce/includes/rest-api/Controllers/Version3/class-wc-rest-report-coupons-totals-controller.php 106
return apply_filters( 'woocommerce_rest_prepare_report_coupons_count', $response, $report, $request );