Automattic\WooCommerce\Admin\API\Reports\Customers

DataStore::init │ public static │ WC 1.0

Set up all the hooks for maintaining and populating table data.

Метод класса: DataStore{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

$result = DataStore::init();

Код DataStore::init() WC 11.3.0

public static function init() {
	add_action( 'woocommerce_new_customer', array( __CLASS__, 'update_registered_customer' ) );

	add_action( 'woocommerce_update_customer', array( __CLASS__, 'update_registered_customer' ) );
	add_action( 'profile_update', array( __CLASS__, 'update_registered_customer' ) );

	add_action( 'added_user_meta', array( __CLASS__, 'update_registered_customer_via_last_active' ), 10, 3 );
	add_action( 'updated_user_meta', array( __CLASS__, 'update_registered_customer_via_last_active' ), 10, 3 );

	add_action( 'delete_user', array( __CLASS__, 'delete_customer_by_user_id' ) );
	add_action( 'remove_user_from_blog', array( __CLASS__, 'delete_customer_by_user_id' ) );

	add_action( 'woocommerce_privacy_remove_order_personal_data', array( __CLASS__, 'anonymize_customer' ) );

	add_action( 'woocommerce_analytics_delete_order_stats', array( __CLASS__, 'sync_on_order_delete' ), 15, 2 );

	add_action( 'woocommerce_created_customer', array( __CLASS__, 'merge_guest_customer_on_delayed_account_creation' ), 5, 2 );
}