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
. Ничего.
Использование
$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 7.3.0
public function load_country_states() { global $states; $states = include WC()->plugin_path() . '/i18n/states.php'; $this->states = apply_filters( 'woocommerce_states', $states ); }