WC_Report_Sales_By_Product::__construct
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 Report Sales By Product:: construct WC 10.4.3
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
}