filtrod MU (3.0.0)
mu_dropdown_languages
Opis — z kodu źródłowego
Filters the languages available in the dropdown.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$output | string[] | Array of HTML output for the dropdown. |
$lang_files | string[] | Array of available language files. |
$current | string | The current language code. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'mu_dropdown_languages', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'mu_dropdown_languages', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii