WordPress at Your Fingertips
function is not described

WC_Report_Sales_By_Category::get_chart_widgets() public WC 1.0

Get chart widgets.

{} It's a 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();

Code of WC_Report_Sales_By_Category::get_chart_widgets() WC 5.8.0

public function get_chart_widgets() {

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