woocommerce_checkout_update_customer_data
Использование
add_filter( 'woocommerce_checkout_update_customer_data', 'wp_kama_woocommerce_checkout_update_customer_data_filter', 10, 2 ); /** * Function for `woocommerce_checkout_update_customer_data` filter-hook. * * @param $true * @param $that * * @return */ function wp_kama_woocommerce_checkout_update_customer_data_filter( $true, $that ){ // filter... return $true; }
- $true
- -
- $that
- -
Где вызывается хук
woocommerce_checkout_update_customer_data
woocommerce/includes/class-wc-checkout.php 1182
if ( $customer_id && apply_filters( 'woocommerce_checkout_update_customer_data', true, $this ) ) {