WC_Report_Sales_By_Product::__construct()
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 Report Sales By Product:: construct WC 6.7.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 }