Automattic\WooCommerce\Internal\StockNotifications
StockSyncController::__construct
Constructor.
Метод класса: StockSyncController{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$StockSyncController = new StockSyncController(); $StockSyncController->__construct();
Код StockSyncController::__construct() StockSyncController:: construct WC 11.2.2
public function __construct() {
// Event handlers.
add_action( 'woocommerce_product_set_stock_status', array( $this, 'handle_product_stock_status_change' ), 100, 3 );
add_action( 'woocommerce_variation_set_stock_status', array( $this, 'handle_product_stock_status_change' ), 100, 3 );
// Process the queue on shutdown.
add_action( 'shutdown', array( $this, 'process_queue' ) );
// Output the admin notice.
add_action( 'admin_notices', array( $this, 'output_admin_notice' ) );
}