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

woocommerce_get_country_locale хук-фильтр . WC 1.0

Get country locale settings.

These locales override the default country selections after a country is chosen.

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

add_filter( 'woocommerce_get_country_locale', 'filter_function_name_4856' );
function filter_function_name_4856( $array ){
	// filter...

	return $array;
}
$array
-

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

WC_Countries::get_country_locale()
woocommerce_get_country_locale
woocommerce/includes/class-wc-countries.php 740-1254
$this->locale = apply_filters(
	'woocommerce_get_country_locale',
	array(
		'AE' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'AF' => array(
			'state' => array(
				'required' => false,
			),
		),
		'AO' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
			'state'    => array(
				'label' => __( 'Province', 'woocommerce' ),
			),
		),
		'AT' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'AU' => array(
			'city'     => array(
				'label' => __( 'Suburb', 'woocommerce' ),
			),
			'postcode' => array(
				'label' => __( 'Postcode', 'woocommerce' ),
			),
			'state'    => array(
				'label' => __( 'State', 'woocommerce' ),
			),
		),
		'AX' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'BD' => array(
			'postcode' => array(
				'required' => false,
			),
			'state'    => array(
				'label' => __( 'District', 'woocommerce' ),
			),
		),
		'BE' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
				'label'    => __( 'Province', 'woocommerce' ),
			),
		),
		'BH' => array(
			'postcode' => array(
				'required' => false,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'BI' => array(
			'state' => array(
				'required' => false,
			),
		),
		'BO' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
		),
		'BS' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
		),
		'CA' => array(
			'state' => array(
				'label' => __( 'Province', 'woocommerce' ),
			),
		),
		'CH' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'label'    => __( 'Canton', 'woocommerce' ),
				'required' => false,
			),
		),
		'CL' => array(
			'city'     => array(
				'required' => true,
			),
			'postcode' => array(
				'required' => false,
			),
			'state'    => array(
				'label' => __( 'Region', 'woocommerce' ),
			),
		),
		'CN' => array(
			'state' => array(
				'label' => __( 'Province', 'woocommerce' ),
			),
		),
		'CO' => array(
			'postcode' => array(
				'required' => false,
			),
		),
		'CZ' => array(
			'state' => array(
				'required' => false,
			),
		),
		'DE' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'DK' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'EE' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'FI' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'FR' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'GP' => array(
			'state' => array(
				'required' => false,
			),
		),
		'GF' => array(
			'state' => array(
				'required' => false,
			),
		),
		'GR' => array(
			'state' => array(
				'required' => false,
			),
		),
		'HK' => array(
			'postcode' => array(
				'required' => false,
			),
			'city'     => array(
				'label' => __( 'Town / District', 'woocommerce' ),
			),
			'state'    => array(
				'label' => __( 'Region', 'woocommerce' ),
			),
		),
		'HU' => array(
			'state' => array(
				'label' => __( 'County', 'woocommerce' ),
			),
		),
		'ID' => array(
			'state' => array(
				'label' => __( 'Province', 'woocommerce' ),
			),
		),
		'IE' => array(
			'postcode' => array(
				'required' => false,
				'label'    => __( 'Eircode', 'woocommerce' ),
			),
			'state'    => array(
				'label' => __( 'County', 'woocommerce' ),
			),
		),
		'IS' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'IL' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'IM' => array(
			'state' => array(
				'required' => false,
			),
		),
		'IT' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => true,
				'label'    => __( 'Province', 'woocommerce' ),
			),
		),
		'JP' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'label'    => __( 'Prefecture', 'woocommerce' ),
				'priority' => 66,
			),
			'city' => array(
				'priority' => 67,
			),
			'address_1' => array(
				'priority' => 68,
			),
			'address_2' => array(
				'priority' => 69,
			),
		),
		'KR' => array(
			'state' => array(
				'required' => false,
			),
		),
		'KW' => array(
			'state' => array(
				'required' => false,
			),
		),
		'LV' => array(
			'state' => array(
				'label'    => __( 'Municipality', 'woocommerce' ),
				'required' => false,
			),
		),
		'LB' => array(
			'state' => array(
				'required' => false,
			),
		),
		'MQ' => array(
			'state' => array(
				'required' => false,
			),
		),
		'MT' => array(
			'state' => array(
				'required' => false,
			),
		),
		'NL' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
				'label'    => __( 'Province', 'woocommerce' ),
			),
		),
		'NG' => array(
			'postcode' => array(
				'label'    => __( 'Postcode', 'woocommerce' ),
				'required' => false,
				'hidden'   => true,
			),
			'state'    => array(
				'label' => __( 'State', 'woocommerce' ),
			),
		),
		'NZ' => array(
			'postcode' => array(
				'label' => __( 'Postcode', 'woocommerce' ),
			),
			'state'    => array(
				'required' => false,
				'label'    => __( 'Region', 'woocommerce' ),
			),
		),
		'NO' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'NP' => array(
			'state'    => array(
				'label' => __( 'State / Zone', 'woocommerce' ),
			),
			'postcode' => array(
				'required' => false,
			),
		),
		'PL' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'PT' => array(
			'state' => array(
				'required' => false,
			),
		),
		'RE' => array(
			'state' => array(
				'required' => false,
			),
		),
		'RO' => array(
			'state' => array(
				'label'    => __( 'County', 'woocommerce' ),
				'required' => true,
			),
		),
		'RS' => array(
			'state' => array(
				'required' => false,
				'hidden'   => true,
			),
		),
		'SG' => array(
			'state' => array(
				'required' => false,
			),
			'city'  => array(
				'required' => false,
			),
		),
		'SK' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'SI' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'SR' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
		),
		'ES' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'label' => __( 'Province', 'woocommerce' ),
			),
		),
		'LI' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'label'    => __( 'Municipality', 'woocommerce' ),
				'required' => false,
			),
		),
		'LK' => array(
			'state' => array(
				'required' => false,
			),
		),
		'LU' => array(
			'state' => array(
				'required' => false,
			),
		),
		'MD' => array(
			'state' => array(
				'label' => __( 'Municipality / District', 'woocommerce' ),
			),
		),
		'SE' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'required' => false,
			),
		),
		'TR' => array(
			'postcode' => array(
				'priority' => 65,
			),
			'state'    => array(
				'label' => __( 'Province', 'woocommerce' ),
			),
		),
		'US' => array(
			'postcode' => array(
				'label' => __( 'ZIP', 'woocommerce' ),
			),
			'state'    => array(
				'label' => __( 'State', 'woocommerce' ),
			),
		),
		'GB' => array(
			'postcode' => array(
				'label' => __( 'Postcode', 'woocommerce' ),
			),
			'state'    => array(
				'label'    => __( 'County', 'woocommerce' ),
				'required' => false,
			),
		),
		'ST' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
			'state'    => array(
				'label' => __( 'District', 'woocommerce' ),
			),
		),
		'VN' => array(
			'state'     => array(
				'required' => false,
			),
			'postcode'  => array(
				'priority' => 65,
				'required' => false,
				'hidden'   => false,
			),
			'address_2' => array(
				'required' => false,
				'hidden'   => true,
			),
		),
		'WS' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
		),
		'YT' => array(
			'state' => array(
				'required' => false,
			),
		),
		'ZA' => array(
			'state' => array(
				'label' => __( 'Province', 'woocommerce' ),
			),
		),
		'ZW' => array(
			'postcode' => array(
				'required' => false,
				'hidden'   => true,
			),
		),
	)
);

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

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