WC_Report_Sales_By_Category::get_chart_widgets()publicWC 1.0

Get chart widgets.

Method of the class: WC_Report_Sales_By_Category{}

No Hooks.

Return

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() code WC 8.6.1

public function get_chart_widgets() {

	return array(
		array(
			'title'    => __( 'Categories', 'woocommerce' ),
			'callback' => array( $this, 'category_widget' ),
		),
	);
}