Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::__construct()publicWC 1.0

Class constructor.

{} It's a method of the class: DataSynchronizer{}

No Hooks.

Return

null. Nothing.

Usage

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

Code of DataSynchronizer::__construct() WC 6.6.1

public function __construct() {
	add_action(
		self::ORDERS_SYNC_SCHEDULED_ACTION_CALLBACK,
		function() {
			$this->do_pending_orders_synchronization();
		}
	);

	add_action(
		'woocommerce_after_order_object_save',
		function() {
			$this->maybe_start_synchronizing_pending_orders();
		}
	);
}