woocommerce_rest_prepare_report

woocommerce_rest_prepare_report

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_rest_prepare_report') is found 2 times:

  • /includes/rest-api/Controllers/Version1/class-wc-rest-reports-v1-controller.php line 142
    138
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
         * @param WP_REST_Response $response The response object.
         * @param object           $report   The original report object.
         * @param WP_REST_Request  $request  Request used to generate the response.
         */
        return apply_filters( 'woocommerce_rest_prepare_report', $response, $report, $request );
    }
     
    /**
     * Get the Report's schema, conforming to JSON Schema.
     *
     * @return array
  • /src/Admin/API/Reports/Controller.php line 181
    177
    178
    179
    180
    181
    182
    183
    184
    185
    186
    187
         * @param WP_REST_Response $response The response object.
         * @param object           $report   The original report object.
         * @param WP_REST_Request  $request  Request used to generate the response.
         */
        return apply_filters( 'woocommerce_rest_prepare_report', $response, $report, $request );
    }
     
    /**
     * Get the Report's schema, conforming to JSON Schema.
     *
     * @override WP_REST_Controller::get_item_schema()