WC_Countries::load_country_states
Устарела с версии 3.6.0. Больше не поддерживается и может быть удалена. Смотрите
d to load state files, but is no longer needed. @see get_states().Load the states.
Метод класса: WC_Countries{}
Хуки из метода
Возвращает
null. Ничего (null).
Использование
$WC_Countries = new WC_Countries(); $WC_Countries->load_country_states();
Список изменений
| Устарела с 3.6.0 | This method was used to load state files, but is no longer needed. @see get_states(). |
Код WC_Countries::load_country_states() WC Countries::load country states WC 10.7.0
public function load_country_states() {
global $states;
$states = include WC()->plugin_path() . '/i18n/states.php';
/**
* Allows filtering of country states in WC.
*
* @since 1.5.3
*
* @param array $states
*/
$this->geo_cache['states'] = apply_filters( 'woocommerce_states', $states );
}