Class WC_Admin_Report
Admin Report
Extended by reports to show charts and stats in admin.
Direct known subclasses
WC_Report_Coupon_Usage
,
WC_Report_Customers
,
WC_Report_Sales_By_Category
,
WC_Report_Sales_By_Date
,
WC_Report_Sales_By_Product
,
WC_Report_Taxes_By_Code
,
WC_Report_Taxes_By_Date
Package: WooCommerce\Admin\Reports
Category: Admin
Author: WooThemes
Version: 2.1.0
Located at includes/admin/reports/class-wc-admin-report.php
Category: Admin
Author: WooThemes
Version: 2.1.0
Located at includes/admin/reports/class-wc-admin-report.php
Methods summary
public
array|string
|
#
get_order_report_data( array $args = array() )
Get report totals such as order totals and discount amounts. |
public
string
|
#
prepare_chart_data( array $data, string $date_key, string $data_key, integer $interval, string $start_date, string $group_by )
Put data with post_date's into an array of times |
public
string
|
#
sales_sparkline( integer $id = '', integer $days = 7, string $type = 'sales' )
Prepares a sparkline to show sales in the last X days |
public
|
#
calculate_current_range( string $current_range )
Get the current range and calculate the start and end dates |
public
string
|
|
public
array
|
|
public
array
|
|
public
|
|
public
|
Magic methods summary
Properties summary
public
mixed
|
$chart_interval | |
public
mixed
|
$group_by_query | |
public
mixed
|
$barwidth | |
public
mixed
|
$chart_groupby | |
public
mixed
|
$start_date | |
public
mixed
|
$end_date |