register_post_tag_taxonomy_args
Filters the arguments for registering a specific taxonomy.
This is one of the variants of the dynamic hook register_(taxonomy)_taxonomy_args
Usage
add_filter( 'register_post_tag_taxonomy_args', 'wp_kama_register_post_tag_taxonomy_args_filter', 10, 3 ); /** * Function for `register_post_tag_taxonomy_args` filter-hook. * * @param array $args Array of arguments for registering a taxonomy. See the register_taxonomy() function for accepted arguments. * @param string $taxonomy Taxonomy key. * @param string[] $object_type Array of names of object types for the taxonomy. * * @return array */ function wp_kama_register_post_tag_taxonomy_args_filter( $args, $taxonomy, $object_type ){ // filter... return $args; }
- $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.
Changelog
Since 6.0.0 | Introduced. |
Where the hook is called
register_post_tag_taxonomy_args
wp-includes/class-wp-taxonomy.php 337
$args = apply_filters( "register_{$taxonomy}_taxonomy_args", $args, $this->name, (array) $object_type );