akcjaod 4.2.0
split_shared_term
Opis — z kodu źródłowego
Fires after a previously shared taxonomy term is split into two separate terms.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$term_id | int | ID of the formerly shared term. |
$new_term_id | int | ID of the new term created for the $term_taxonomy_id. |
$term_taxonomy_id | int | ID for the term_taxonomy row affected by the split. |
$taxonomy | string | Taxonomy for the split term. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'split_shared_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( 'split_shared_term', 'twoja_funkcja', 10, 4 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4) {
// Twój kod
}Popularne w tej kategorii