filtrod MU (3.0.0)
lang_codes
Opis — z kodu źródłowego
Filters the language codes.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$lang_codes | string[] | Array of key/value pairs of language codes where key is the short version. |
$code | string | A two-letter designation of the language. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'lang_codes', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'lang_codes', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii