akcjaod 2.9.0
edited_terms
Opis — z kodu źródłowego
Fires immediately after a term is updated in the database, but before its term-taxonomy relationship is updated.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$term_id | int | Term 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_terms', '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( 'edited_terms', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii