Automattic\WooCommerce\Internal\StockNotifications
StockNotifications::on_install_or_update
Handle the WooCommerce installation event.
This method is called when WooCommerce is installed or updated. It initializes the data retention controller to set up necessary tasks.
Method of the class: StockNotifications{}
No Hooks.
Returns
null. Nothing (null).
Usage
$StockNotifications = new StockNotifications(); $StockNotifications->on_install_or_update();
StockNotifications::on_install_or_update() StockNotifications::on install or update code WC 10.3.6
public function on_install_or_update() {
wc_get_container()->get( DataRetentionController::class )->on_woo_install_or_update();
}