woocommerce_update_customer_args
Updates a customer in the database.
Использование
add_filter( 'woocommerce_update_customer_args', 'wp_kama_woocommerce_update_customer_args_filter' );
/**
* Function for `woocommerce_update_customer_args` filter-hook.
*
* @param $customer
*
* @return
*/
function wp_kama_woocommerce_update_customer_args_filter( $customer ){
// filter...
return $customer;
}
- $customer
- -
Список изменений
| С версии 3.0.0 | Введена. |
Где вызывается хук
woocommerce_update_customer_args
woocommerce_update_customer_args
woocommerce/includes/data-stores/class-wc-customer-data-store.php 199-207
apply_filters( 'woocommerce_update_customer_args', array( 'ID' => $customer->get_id(), 'user_email' => $customer->get_email(), 'display_name' => $customer->get_display_name(), ), $customer )
woocommerce/includes/data-stores/class-wc-customer-data-store.php 134-142
apply_filters( 'woocommerce_update_customer_args', array( 'ID' => $customer->get_id(), 'role' => $customer->get_role(), 'display_name' => $customer->get_display_name(), ), $customer )