woocommerce_api_report_response

woocommerce_api_report_response

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.8.9.3

apply_filters('woocommerce_api_report_response') is found 6 times:

  • /includes/legacy/api/v1/class-wc-api-reports.php line 355
    351
    352
    353
    354
    355
    356
    357
    358
    359
    360
    361
            'totals'            => $period_totals,
            'total_customers'   => $total_customers,
        );
     
        return array( 'sales' => apply_filters( 'woocommerce_api_report_response', $sales_data, $this->report, $fields, $this->server ) );
    }
     
    /**
     * Get the top sellers report
     *
     * @since 2.1
  • /includes/legacy/api/v1/class-wc-api-reports.php line 413
    409
    410
    411
    412
    413
    414
    415
    416
    417
    418
    419
                'quantity'   => $top_seller->order_item_qty,
            );
        }
     
        return array( 'top_sellers' => apply_filters( 'woocommerce_api_report_response', $top_sellers_data, $this->report, $fields, $this->server ) );
    }
     
    /**
     * Setup the report object and parse any date filtering
     *
     * @since 2.1
  • /includes/legacy/api/v2/class-wc-api-reports.php line 197
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
            'totals'            => $period_totals,
            'total_customers'   => $total_customers,
        );
     
        return array( 'sales' => apply_filters( 'woocommerce_api_report_response', $sales_data, $this->report, $fields, $this->server ) );
    }
     
    /**
     * Get the top sellers report
     *
     * @since 2.1
  • /includes/legacy/api/v2/class-wc-api-reports.php line 257
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
                );
            }
        }
     
        return array( 'top_sellers' => apply_filters( 'woocommerce_api_report_response', $top_sellers_data, $this->report, $fields, $this->server ) );
    }
     
    /**
     * Setup the report object and parse any date filtering
     *
     * @since 2.1
  • /includes/legacy/api/v3/class-wc-api-reports.php line 197
    193
    194
    195
    196
    197
    198
    199
    200
    201
    202
    203
            'totals'            => $period_totals,
            'total_customers'   => $total_customers,
        );
     
        return array( 'sales' => apply_filters( 'woocommerce_api_report_response', $sales_data, $this->report, $fields, $this->server ) );
    }
     
    /**
     * Get the top sellers report
     *
     * @since 2.1
  • /includes/legacy/api/v3/class-wc-api-reports.php line 257
    253
    254
    255
    256
    257
    258
    259
    260
    261
    262
    263
                );
            }
        }
     
        return array( 'top_sellers' => apply_filters( 'woocommerce_api_report_response', $top_sellers_data, $this->report, $fields, $this->server ) );
    }
     
    /**
     * Setup the report object and parse any date filtering
     *
     * @since 2.1

See this hook used in plugins: