On this page
apply_filters( 'get_available_languages', string[] $languages, string $dir )
Filters the list of available language codes.
Parameters
$languagesstring[]-
An array of available language codes.
$dirstring-
The directory where the language files were found.
Source
File: wp-includes/l10n.php. View all references
return apply_filters( 'get_available_languages', $languages, $dir );
Related
Used By
| Used By | Description |
|---|---|
| get_available_languages() wp-includes/l10n.php | Gets all available languages based on the presence of *.mo files in a given directory. |
Changelog
| Version | Description |
|---|---|
| 4.7.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/get_available_languages