filtrod 3.1.0
wp_update_term_parent
Opis — z kodu źródłowego
Filters the term parent.
Hook to this filter to see if it will cause a hierarchy loop.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$parent_term | int | ID of the parent term. |
$term_id | int | Term ID. |
$taxonomy | string | Taxonomy slug. |
$parsed_args | array | An array of potentially altered update arguments for the given term. |
$args | array | Arguments passed to wp_update_term(). |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'wp_update_term_parent', '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_filter( 'wp_update_term_parent', 'twoja_funkcja', 10, 5 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5) {
// Twój kod
}Popularne w tej kategorii