WC_Report_Sales_By_Category::__construct()publicWC 1.0

Constructor.

{} It's a method of the class: WC_Report_Sales_By_Category{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Report_Sales_By_Category = new WC_Report_Sales_By_Category();
$WC_Report_Sales_By_Category->__construct();

Code of WC_Report_Sales_By_Category::__construct() WC 6.6.1

public function __construct() {
	if ( isset( $_GET['show_categories'] ) ) {
		$this->show_categories = is_array( $_GET['show_categories'] ) ? array_map( 'absint', $_GET['show_categories'] ) : array( absint( $_GET['show_categories'] ) );
	}
}