get_lifterlms_countries()

Get Countries array for Select list


Return Return

(array)


Top ↑

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 );

}


Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.