akcjaod 4.4.0
pre_auto_update
Opis — z kodu źródłowego
Fires immediately prior to an auto-update.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$type | string | The type of update being checked: 'core', 'theme', 'plugin', or 'translation'. |
$item | object | The update offer. |
$context | string | The filesystem context (a path) against which filesystem access and status should be checked. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'pre_auto_update', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'pre_auto_update', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii