Tribe__Languages__Locations::get_countries( bool $escape = false )

Returns an array of countries and their codes.

Adds array to object cache to speed up subsequent retrievals.


Parameters

$escape

(bool) (Optional) Weather to escape for translations or not.

Default value: false


Top ↑

Return

(array) List of countries

  • 'country_code'
    (string) Country name.


Top ↑

Source

File: src/Tribe/Languages/Locations.php

	public function get_countries() {
		return tribe( 'cache' )->get( 'tribe_country_list', '', array( $this, 'build_country_array' ) );
	}

Top ↑

Changelog

Changelog
Version Description
4.13.0 Introduced.