filtrod 4.0.0
async_update_translation
Opis — z kodu źródłowego
Filters whether to asynchronously update translation for core, a plugin, or a theme.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$update | bool | Whether to update. |
$language_update | object | The update offer. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'async_update_translation', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'async_update_translation', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii