Automattic\WooCommerce\Internal\StockNotifications

StockNotifications::on_install_or_update │ public │ WC 1.0

Set up the data retention tasks when WooCommerce is installed or updated.

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

Хуков нет.

Возвращает

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

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

$StockNotifications = new StockNotifications();
$StockNotifications->on_install_or_update();

Код StockNotifications::on_install_or_update() WC 11.2.2

public function on_install_or_update() {
	if ( ! self::is_enabled() ) {
		return;
	}

	wc_get_container()->get( DataRetentionController::class )->on_woo_install_or_update();
}