Tribe__Languages__Locations::get_us_states()

Returns an array of countries and their codes.

Contents

Adds array to object cache to speed up subsequent retrievals.


Return

(array) List of countries

  • 'country_code'
    (string) Country name.


Top ↑

Source

File: src/Tribe/Languages/Locations.php

	public function get_us_states() {
		return tribe( 'cache' )->get( 'tribe_us_states_list', '', array( $this, 'build_us_states_array' ) );
	}