get_available_languages WordPress Filter Hook
The get_available_languages Wordpress hook allows you to determine which languages are available on your site. This can be useful if you want to create a multilingual site or if you want to limit access to certain languages.
apply_filters( 'get_available_languages',  string[] $languages ,  string $dir  ) #
Filters the list of available language codes.
Parameters
- $languages
- (string[])An array of available language codes. 
- $dir
- (string)The directory where the language files were found. 
Source
File: wp-includes/l10n.php
Changelog
| Version | Description | 
|---|---|
| 4.7.0 | Introduced. |