akcjaod 5.5.0
saved_term
Opis — z kodu źródłowego
Fires after a term has been saved, and the term cache has been cleared.
The {@see 'saved_$taxonomy'} hook is also available for targeting a specific taxonomy.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$term_id | int | Term ID. |
$tt_id | int | Term taxonomy ID. |
$taxonomy | string | Taxonomy slug. |
$update | bool | Whether this is an existing term being updated. |
$args | array | Arguments passed to wp_insert_term(). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'saved_term', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'saved_term', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii