akcjaod 3.3.0
registered_taxonomy
Opis — z kodu źródłowego
Fires after a taxonomy is registered.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$taxonomy | string | Taxonomy slug. |
$object_type | array | string | Object type or array of object types. |
$args | array | Array of taxonomy registration arguments. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_action( 'registered_taxonomy', '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( 'registered_taxonomy', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii