Automattic\WooCommerce\Internal\StockNotifications
StockNotifications::on_install_or_update
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() 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();
}