akcjaod 2.3.0
edited_term
Opis — z kodu źródłowego
Fires after a term has been updated, and the term cache has been cleaned.
The {@see 'edited_$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. |
$args | array | Arguments passed to wp_update_term(). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'edited_term', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'edited_term', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii