Warning: This method has been deprecated. This method was used to load state files, but is no longer needed. @see get_states() instead.
WC_Countries::load_country_states()
Load the states.
Description Description
Source Source
File: includes/class-wc-countries.php
public function load_country_states() {
global $states;
$states = include WC()->plugin_path() . '/i18n/states.php';
$this->states = apply_filters( 'woocommerce_states', $states );
}
Changelog Changelog
| Version | Description |
|---|---|
| 3.6.0 | Introduced. |