woocommerce_analytics_update_customer
Fires when customser's reports are updated.
Usage
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.
Changelog
Since 4.0.0 | Introduced. |
Where the hook is called
woocommerce_analytics_update_customer
woocommerce_analytics_update_customer
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 818
do_action( 'woocommerce_analytics_update_customer', $customer_id );
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 173
do_action( 'woocommerce_analytics_update_customer', $customer_id );