woocommerce_default_address_fields
Использование
add_filter( 'woocommerce_default_address_fields', 'wp_kama_woocommerce_default_address_fields_filter' ); /** * Function for `woocommerce_default_address_fields` filter-hook. * * @param $fields * * @return */ function wp_kama_woocommerce_default_address_fields_filter( $fields ){ // filter... return $fields; }
- $fields
- -
Где вызывается хук
woocommerce_default_address_fields
woocommerce/includes/class-wc-countries.php 821
$default_address_fields = apply_filters( 'woocommerce_default_address_fields', $fields );