Automattic\WooCommerce\Internal\DataStores\Orders

DataSynchronizer::__construct()publicWC 1.0

Class constructor.

Method of the class: DataSynchronizer{}

No Hooks.

Return

null. Nothing (null).

Usage

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

DataSynchronizer::__construct() code WC 8.7.0

public function __construct() {
	self::add_action( 'deleted_post', array( $this, 'handle_deleted_post' ), 10, 2 );
	self::add_action( 'woocommerce_new_order', array( $this, 'handle_updated_order' ), 100 );
	self::add_action( 'woocommerce_refund_created', array( $this, 'handle_updated_order' ), 100 );
	self::add_action( 'woocommerce_update_order', array( $this, 'handle_updated_order' ), 100 );
	self::add_action( 'wp_scheduled_auto_draft_delete', array( $this, 'delete_auto_draft_orders' ), 9 );
	self::add_action( 'wp_scheduled_delete', array( $this, 'delete_trashed_orders' ), 9 );
	self::add_filter( 'updated_option', array( $this, 'process_updated_option' ), 999, 3 );
	self::add_filter( 'added_option', array( $this, 'process_added_option' ), 999, 2 );
	self::add_filter( 'deleted_option', array( $this, 'process_deleted_option' ), 999 );
	self::add_action( self::BACKGROUND_SYNC_EVENT_HOOK, array( $this, 'handle_interval_background_sync' ) );
	if ( self::BACKGROUND_SYNC_MODE_CONTINUOUS === $this->get_background_sync_mode() ) {
		self::add_action( 'shutdown', array( $this, 'handle_continuous_background_sync' ) );
	}

	self::add_filter( 'woocommerce_feature_description_tip', array( $this, 'handle_feature_description_tip' ), 10, 3 );
}