akcjaod 2.9.0
edit_terms
Opis — z kodu źródłowego
Fires immediately before the given terms are edited.
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( 'edit_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( 'edit_terms', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii