WC_Countries::load_country_states
Deprecated since 3.6.0. It is no longer supported and may be removed in future releases. See
d to load state files, but is no longer needed. @see get_states().Load the states.
Method of the class: WC_Countries{}
Hooks from the method
Returns
null. Nothing (null).
Usage
$WC_Countries = new WC_Countries(); $WC_Countries->load_country_states();
Changelog
| Deprecated since 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 code WC 10.6.2
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 );
}