woocommerce_my_account_edit_address_field_value
Использование
add_filter( 'woocommerce_my_account_edit_address_field_value', 'wp_kama_woocommerce_my_account_edit_address_field_value_filter', 10, 3 ); /** * Function for `woocommerce_my_account_edit_address_field_value` filter-hook. * * @param $value * @param $key * @param $load_address * * @return */ function wp_kama_woocommerce_my_account_edit_address_field_value_filter( $value, $key, $load_address ){ // filter... return $value; }
- $value
- -
- $key
- -
- $load_address
- -
Где вызывается хук
woocommerce_my_account_edit_address_field_value
woocommerce/includes/shortcodes/class-wc-shortcode-my-account.php 204
$address[ $key ]['value'] = apply_filters( 'woocommerce_my_account_edit_address_field_value', $value, $key, $load_address );