get_lifterlms_countries()
Get Countries array for Select list
Return Return
(array)
Source Source
File: includes/functions/llms-functions-locale.php
function get_lifterlms_countries() {
$countries = require LLMS_PLUGIN_DIR . 'languages/countries.php';
/**
* Modify the default countries list.
*
* @since 1.0.0
*
* @param array $countries Associative array of Country Code => Country Name.
*/
$countries = apply_filters( 'lifterlms_countries', $countries );
return array_unique( $countries );
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 5.0.0 | Moved from llms.functions.currency.php. Use country list stored in file at languages/countries.php. |
| 3.28.2 | Updated country list. |
| 1.0.0 | Introduced. |