WordPress at Your Fingertips
function is not described

WC_Countries::load_country_states() public WC 1.0

Deprecated from version 3.6.0. It is no longer supported and can be removed in future releases. See d to load state files, but is no longer needed. @see get_states().

Load the states.

{} It's a method of the class: WC_Countries{}

Hooks from the method
Return

null. Nothing.

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().

Code of WC_Countries::load_country_states() WC 5.7.1

public function load_country_states() {
	global $states;

	$states       = include WC()->plugin_path() . '/i18n/states.php';
	$this->states = apply_filters( 'woocommerce_states', $states );
}