WP HOOKS
filtrdynamicznyod 6.0.0

register_{$taxonomy}_taxonomy_args

Args 3Plik wp-includes/class-wp-taxonomy.php

Opis — z kodu źródłowego

Filters the arguments for registering a specific taxonomy.

The dynamic portion of the filter name, $taxonomy, refers to the taxonomy key. Possible hook names include:

  • register_category_taxonomy_args
  • register_post_tag_taxonomy_args

Hook dynamiczny — możliwe nazwy

register_category_taxonomy_argsregister_post_tag_taxonomy_args

Parametry

ParametrTypOpis
$argsarrayArray of arguments for registering a taxonomy. See the register_taxonomy() function for accepted arguments.
$taxonomystringTaxonomy key.
$object_typestring[]Array of names of object types for the taxonomy.

Wywołanie

Rejestracja callbackaphp
// rejestracja funkcji zwrotnej — podaj liczbę argumentów!
add_filter( 'register_{$taxonomy}_taxonomy_args', 'twoja_funkcja', 10, 3 );

function twoja_funkcja($param_1, $param_2, $param_3) {
	// Twój kod
}

Popularne w tej kategorii