woocommerce_analytics_new_customer
Fires when a new report customer is created.
Использование
add_action( 'woocommerce_analytics_new_customer', 'wp_kama_woocommerce_analytics_new_customer_action' ); /** * Function for `woocommerce_analytics_new_customer` action-hook. * * @param int $customer_id Customer ID. * * @return void */ function wp_kama_woocommerce_analytics_new_customer_action( $customer_id ){ // action... }
- $customer_id(int)
- Customer ID.
Список изменений
С версии 4.0.0 | Введена. |
Где вызывается хук
woocommerce_analytics_new_customer
woocommerce/src/Admin/API/Reports/Customers/DataStore.php 578
do_action( 'woocommerce_analytics_new_customer', $customer_id );