Gets all available languages based on the presence of *.mo and *.l10n.php files in a given directory. The default directory is WP_LANG_DIR.
$dir = null
Sortie :
@param string $dir A directory to search for language files. @return string[] An array of language codes or an empty array if no languages are present.
// Utilisation de la fonction get_available_languages
$result = get_available_languages($dir = null);
if ($result) {
// Votre logique ici
}
Chargement des actualités...