WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
фильтр не описан

woocommerce_(type)fields хук-фильтр . WC 1.0

Important note on this filter: Changes to address fields can and will be overridden by the woocommerce_default_address_fields. The locales/default locales apply on top based on country selection. If you want to change things like the required status of an address field, filter woocommerce_default_address_fields instead.

Использование

add_filter( 'woocommerce_(type)fields', 'filter_function_name_2926', 10, 2 );
function filter_function_name_2926( $address_fields, $country ){
	// filter...

	return $address_fields;
}
$address_fields
-
$country
-

Где вызывается хук

WC_Countries::get_address_fields()
woocommerce_(type)fields
woocommerce/includes/class-wc-countries.php 1476
$address_fields = apply_filters( 'woocommerce_' . $type . 'fields', $address_fields, $country );

Где используется хук в ядре WooCommerce

woocommerce/includes/class-wc-countries.php 36
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );
woocommerce/includes/class-wc-countries.php 43
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );
woocommerce/includes/class-wc-countries.php 42
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );
woocommerce/includes/class-wc-countries.php 41
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );
woocommerce/includes/class-wc-countries.php 32
add_filter( 'woocommerce_admin_get_user_data_fields', array( $this, 'add_user_data_fields' ) );