woocommerce_update_customer_args хук-фильтр . WC 3.0.0
Updates a customer in the database.
Использование
add_filter( 'woocommerce_update_customer_args', 'filter_function_name_8469' ); function filter_function_name_8469( $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 188-196
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 121-129
apply_filters( 'woocommerce_update_customer_args', array( 'ID' => $customer->get_id(), 'role' => $customer->get_role(), 'display_name' => $customer->get_display_name(), ), $customer )