Tribe__Languages__Locations::get_countries( bool $escape = false )
Returns an array of countries and their codes.
Contents
Adds array to object cache to speed up subsequent retrievals.
Parameters
- $escape
-
(bool) (Optional) Weather to escape for translations or not.
Default value: false
Return
(array) List of countries
- 'country_code'
(string) Country name.
Source
File: src/Tribe/Languages/Locations.php
public function get_countries() { return tribe( 'cache' )->get( 'tribe_country_list', '', array( $this, 'build_country_array' ) ); }
Changelog
Version | Description |
---|---|
4.13.0 | Introduced. |