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

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

add_filter( 'woocommerce_countries_allowed_country_states', 'wp_kama_woocommerce_countries_allowed_country_states_filter' );

/**
 * Function for `woocommerce_countries_allowed_country_states` filter-hook.
 * 
 * @param  $states 
 *
 * @return 
 */
function wp_kama_woocommerce_countries_allowed_country_states_filter( $states ){

	// filter...
	return $states;
}
$states
-

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

WC_Countries::get_allowed_country_states()
woocommerce_countries_allowed_country_states
woocommerce/includes/class-wc-countries.php 380
return apply_filters( 'woocommerce_countries_allowed_country_states', $states );

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

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