Automattic\WooCommerce\Internal\StockNotifications\Admin
ListTable::__construct
Constructor.
Метод класса: ListTable{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$ListTable = new ListTable(); $ListTable->__construct();
Код ListTable::__construct() ListTable:: construct WC 11.3.0
public function __construct() {
$this->data_store = \WC_Data_Store::load( 'stock_notification' );
$this->has_stock_notifications = $this->data_store->query( array( 'return' => 'count' ) ) > 0;
parent::__construct(
array(
'singular' => 'woocommerce_stock_notification',
'plural' => 'woocommerce_stock_notifications',
)
);
}