akcjaod 2.8.0
set_object_terms
Opis — z kodu źródłowego
Fires after an object's terms have been set.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$object_id | int | Object ID. |
$terms | array | An array of object term IDs or slugs. |
$tt_ids | array | An array of term taxonomy IDs. |
$taxonomy | string | Taxonomy slug. |
$append | bool | Whether to append new terms to the old terms. |
$old_tt_ids | array | Old array of term taxonomy IDs. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'set_object_terms', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'set_object_terms', 'twoja_funkcja', 10, 6 );
function twoja_funkcja($param_1, $param_2, $param_3, $param_4, $param_5, $param_6) {
// Twój kod
}Popularne w tej kategorii