filtrod 4.4.0
register_taxonomy_args
Opis — z kodu źródłowego
Filters the arguments for registering a taxonomy.
Parametry
| Parametr | Typ | Opis |
|---|---|---|
$args | array | Array of arguments for registering a taxonomy. See the register_taxonomy() function for accepted arguments. |
$taxonomy | string | Taxonomy key. |
$object_type | string[] | Array of names of object types for the taxonomy. |
Wywołanie
Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'register_taxonomy_args', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'register_taxonomy_args', 'twoja_funkcja', 10, 3 );
function twoja_funkcja($param_1, $param_2, $param_3) {
// Twój kod
}Popularne w tej kategorii