register_taxonomy_args filter-hook . WP 4.4.0
Filters the arguments for registering a taxonomy.
Usage
add_filter( 'register_taxonomy_args', 'filter_function_name_5254', 10, 3 ); function filter_function_name_5254( $args, $taxonomy, $object_type ){ // filter... return $args; }
- $args(array)
- Array of arguments for registering a taxonomy.
- $taxonomy(string)
- Taxonomy key.
- $object_type(string[])
- Array of names of object types for the taxonomy.
Changelog
Since 4.4.0 | Introduced. |
Where the hook is called
register_taxonomy_args
wp-includes/class-wp-taxonomy.php 277
$args = apply_filters( 'register_taxonomy_args', $args, $this->name, (array) $object_type );