Automattic\WooCommerce\Internal\StockNotifications\Admin

ListTable::__construct │ public │ WC 1.0

Constructor.

Method of the class: ListTable{}

No Hooks.

Returns

void. Nothing (null).

Usage

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

ListTable::__construct() code WC 11.2.2

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',
		)
	);
}