Automattic\WooCommerce\Internal\Admin\Schedulers

CustomersScheduler::init()public staticWC 1.0

Attach customer lookup update hooks.

Method of the class: CustomersScheduler{}

No Hooks.

Return

null. Nothing.

Usage

$result = CustomersScheduler::init();

CustomersScheduler::init() code WC 7.3.0

public static function init() {
	add_action( 'woocommerce_new_customer', array( __CLASS__, 'schedule_import' ) );
	add_action( 'woocommerce_update_customer', array( __CLASS__, 'schedule_import' ) );
	add_action( 'updated_user_meta', array( __CLASS__, 'schedule_import_via_last_active' ), 10, 3 );
	add_action( 'woocommerce_privacy_remove_order_personal_data', array( __CLASS__, 'schedule_anonymize' ) );
	add_action( 'delete_user', array( __CLASS__, 'schedule_user_delete' ) );
	add_action( 'remove_user_from_blog', array( __CLASS__, 'schedule_user_delete' ) );

	CustomersDataStore::init();
	parent::init();
}