akcjaod 4.1.0
wp_creating_autosave
Opis — z kodu źródłowego
Fires before an autosave is stored.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$new_autosave | array | Post array - the autosave that is about to be saved. |
$is_update | bool | Whether this is an existing autosave. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_creating_autosave', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'wp_creating_autosave', 'twoja_funkcja', 10, 2 );
function twoja_funkcja($param_1, $param_2) {
// Twój kod
}Popularne w tej kategorii