woocommerce_states хук-фильтр . WC 1.0
Get the states for a country.
Использование
add_filter( 'woocommerce_states', 'filter_function_name_8801' ); function filter_function_name_8801( $cc ){ // filter... return $cc; }
- $cc(строка)
- Country code.
Где вызывается хук
woocommerce_states
woocommerce_states
woocommerce/includes/class-wc-countries.php 158
$this->states = apply_filters( 'woocommerce_states', include WC()->plugin_path() . '/i18n/states.php' );
woocommerce/includes/class-wc-countries.php 147
$this->states = apply_filters( 'woocommerce_states', $states );