WC_Report_Sales_By_Category::get_chart_widgets
Get chart widgets.
Method of the class: WC_Report_Sales_By_Category{}
No Hooks.
Returns
Array.
Usage
$WC_Report_Sales_By_Category = new WC_Report_Sales_By_Category(); $WC_Report_Sales_By_Category->get_chart_widgets();
WC_Report_Sales_By_Category::get_chart_widgets() WC Report Sales By Category::get chart widgets code WC 10.6.2
public function get_chart_widgets() {
return array(
array(
'title' => __( 'Categories', 'woocommerce' ),
'callback' => array( $this, 'category_widget' ),
),
);
}