filtrod 4.7.0
get_available_languages
Opis — z kodu źródłowego
Filters the list of available language codes.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$languages | string[] | An array of available language codes. |
$dir | string | The directory where the language files were found. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_available_languages', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'get_available_languages', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii