akcjaod 4.7.0
restore_previous_locale
Opis — z kodu źródłowego
Fires when the locale is restored to the previous one.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$locale | string | The new locale. |
$previous_locale | string | The previous locale. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'restore_previous_locale', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'restore_previous_locale', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii