Automattic\WooCommerce\Internal\StockNotifications

StockSyncController::__constructpublicWC 1.0

Constructor.

Method of the class: StockSyncController{}

No Hooks.

Returns

null. Nothing (null).

Usage

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

StockSyncController::__construct() code WC 10.3.6

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