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

Get the states for a country.

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

add_filter( 'woocommerce_states', 'wp_kama_woocommerce_states_filter' );

/**
 * Function for `woocommerce_states` filter-hook.
 * 
 * @param string $cc Country code.
 *
 * @return string
 */
function wp_kama_woocommerce_states_filter( $cc ){

	// filter...
	return $cc;
}
$cc(строка)
Country code.

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

WC_Countries::get_states()
woocommerce_states
WC_Countries::load_country_states()
woocommerce_states
woocommerce/includes/class-wc-countries.php 169
$this->states = apply_filters( 'woocommerce_states', include WC()->plugin_path() . '/i18n/states.php' );
woocommerce/includes/class-wc-countries.php 158
$this->states = apply_filters( 'woocommerce_states', $states );

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

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