woocommerce_rest_prepare_report_sales

woocommerce_rest_prepare_report_sales

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_rest_prepare_report_sales') is found 1 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-report-sales-v1-controller.php line 237
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    243
         * @param WP_REST_Response $response The response object.
         * @param stdClass         $data     The original report object.
         * @param WP_REST_Request  $request  Request used to generate the response.
         */
        return apply_filters( 'woocommerce_rest_prepare_report_sales', $response, (object) $sales_data, $request );
    }
     
    /**
     * Setup the report object and parse any date filtering.
     *
     * @param array $filter date filtering