WC_Report_Sales_By_Product::__construct()publicWC 1.0

Constructor.

Метод класса: WC_Report_Sales_By_Product{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

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

Код WC_Report_Sales_By_Product::__construct() WC 8.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
}