WC_Report_Sales_By_Product::get_chart_widgets()
Get chart widgets.
Method of the class: WC_Report_Sales_By_Product{}
No Hooks.
Return
Array
.
Usage
$WC_Report_Sales_By_Product = new WC_Report_Sales_By_Product(); $WC_Report_Sales_By_Product->get_chart_widgets();
WC_Report_Sales_By_Product::get_chart_widgets() WC Report Sales By Product::get chart widgets code WC 9.3.1
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; }