WordPress at Your Fingertips
function is not described

WC_Report_Sales_By_Product::__construct() public WC 1.0

Constructor.

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

No Hooks.

Return

null. Nothing.

Usage

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

Code of WC_Report_Sales_By_Product::__construct() WC 5.8.0

public function __construct() {
	// @codingStandardsIgnoreStart
	if ( isset( $_GET['product_ids'] ) && is_array( $_GET['product_ids'] ) ) {
		$this->product_ids = array_filter( array_map( 'absint', $_GET['product_ids'] ) );
	} elseif ( isset( $_GET['product_ids'] ) ) {
		$this->product_ids = array_filter( array( absint( $_GET['product_ids'] ) ) );
	}
	// @codingStandardsIgnoreEnd
}