woocommerce_analytics_update_customer хук-событиеWC 4.0.0

Fires when customser's reports are updated.

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

add_action( 'woocommerce_analytics_update_customer', 'wp_kama_woocommerce_analytics_update_customer_action' );

/**
 * Function for `woocommerce_analytics_update_customer` action-hook.
 * 
 * @param int $customer_id Customer ID.
 *
 * @return void
 */
function wp_kama_woocommerce_analytics_update_customer_action( $customer_id ){

	// action...
}
$customer_id(int)
Customer ID.

Список изменений

С версии 4.0.0 Введена.

Где вызывается хук

DataStore::update_registered_customer()
woocommerce_analytics_update_customer
DataStore::sync_order_customer()
woocommerce_analytics_update_customer
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 810
do_action( 'woocommerce_analytics_update_customer', $customer_id );
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 163
do_action( 'woocommerce_analytics_update_customer', $customer_id );

Где используется хук в WooCommerce

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