WC_Report_Sales_By_Product::get_chart_widgets()
Get chart widgets.
Description Description
Return Return
(array)
Source Source
File: includes/admin/reports/class-wc-report-sales-by-product.php
public function get_chart_widgets() {
$widgets = array();
if ( ! empty( $this->product_ids ) ) {
$widgets[] = array(
'title' => __( 'Showing reports for:', 'woocommerce' ),
'callback' => array( $this, 'current_filters' ),
);
}
$widgets[] = array(
'title' => '',
'callback' => array( $this, 'products_widget' ),
);
return $widgets;
}