Title: register_{$taxonomy}_taxonomy_args
Published: May 25, 2022
Last modified: May 20, 2026

---

# apply_filters( “register_{$taxonomy}_taxonomy_args”, array $args, string $taxonomy, string[] $object_type )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#wp--skip-link--target)

Filters the arguments for registering a specific taxonomy.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#description)󠁿

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`

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#parameters)󠁿

 `$args`array

Array of arguments for registering a taxonomy.
 See the [register_taxonomy()](https://developer.wordpress.org/reference/functions/register_taxonomy/)
function for accepted arguments.

More Arguments from register_taxonomy( … $args )

Array or query string of arguments for registering a taxonomy.

 * `labels` string[]
 * An array of labels for this taxonomy. By default, Tag labels are used for non-
   hierarchical taxonomies, and Category labels are used for hierarchical taxonomies.
   See accepted values in [get_taxonomy_labels()](https://developer.wordpress.org/reference/functions/get_taxonomy_labels/).
 * `description` string
 * A short descriptive summary of what the taxonomy is for.
 * `public` bool
 * Whether a taxonomy is intended for use publicly either via the admin interface
   or by front-end users. The default settings of `$publicly_queryable`, `$show_ui`,
   and `$show_in_nav_menus` are inherited from `$public`.
 * `publicly_queryable` bool
 * Whether the taxonomy is publicly queryable.
    If not set, the default is inherited
   from `$public`
 * `hierarchical` bool
 * Whether the taxonomy is hierarchical. Default false.
 * `show_ui` bool
 * Whether to generate and allow a UI for managing terms in this taxonomy in the
   admin. If not set, the default is inherited from `$public` (default true).
 * `show_in_menu` bool
 * Whether to show the taxonomy in the admin menu. If true, the taxonomy is shown
   as a submenu of the object type menu. If false, no menu is shown.
    `$show_ui`
   must be true. If not set, default is inherited from `$show_ui` (default true).
 * `show_in_nav_menus` bool
 * Makes this taxonomy available for selection in navigation menus. If not set, 
   the default is inherited from `$public` (default true).
 * `show_in_rest` bool
 * Whether to include the taxonomy in the REST API. Set this to true for the taxonomy
   to be available in the block editor.
 * `rest_base` string
 * To change the base url of REST API route. Default is $taxonomy.
 * `rest_namespace` string
 * To change the namespace URL of REST API route. Default is wp/v2.
 * `rest_controller_class` string
 * REST API Controller class name. Default is ‘[WP_REST_Terms_Controller](https://developer.wordpress.org/reference/classes/wp_rest_terms_controller/)‘.
 * `show_tagcloud` bool
 * Whether to list the taxonomy in the Tag Cloud Widget controls. If not set, the
   default is inherited from `$show_ui` (default true).
 * `show_in_quick_edit` bool
 * Whether to show the taxonomy in the quick/bulk edit panel. It not set, the default
   is inherited from `$show_ui` (default true).
 * `show_admin_column` bool
 * Whether to display a column for the taxonomy on its post type listing screens.
   Default false.
 * `meta_box_cb` bool|callable
 * Provide a callback function for the meta box display. If not set, [post_categories_meta_box()](https://developer.wordpress.org/reference/functions/post_categories_meta_box/)
   is used for hierarchical taxonomies, and [post_tags_meta_box()](https://developer.wordpress.org/reference/functions/post_tags_meta_box/)
   is used for non-hierarchical. If false, no meta box is shown.
 * `meta_box_sanitize_cb` callable
 * Callback function for sanitizing taxonomy data saved from a meta box. If no callback
   is defined, an appropriate one is determined based on the value of `$meta_box_cb`.
 * `capabilities` string[]
 *  Array of capabilities for this taxonomy.
    - `manage_terms` string
    - Default `'manage_categories'`.
    - `edit_terms` string
    - Default `'manage_categories'`.
    - `delete_terms` string
    - Default `'manage_categories'`.
    - `assign_terms` string
    - Default `'edit_posts'`.
 * `rewrite` bool|array
 *  Triggers the handling of rewrites for this taxonomy. Default true, using $taxonomy
   as slug. To prevent rewrite, set to false. To specify rewrite rules, an array
   can be passed with any of these keys:
    - `slug` string
    - Customize the permastruct slug. Default `$taxonomy` key.
    - `with_front` bool
    - Should the permastruct be prepended with WP_Rewrite::$front. Default true.
    - `hierarchical` bool
    - Either hierarchical rewrite tag or not. Default false.
    - `ep_mask` int
    - Assign an endpoint mask. Default `EP_NONE`.
 * `query_var` string|bool
 * Sets the query var key for this taxonomy. Default `$taxonomy` key. If false, 
   a taxonomy cannot be loaded at `?{query_var}={term_slug}`. If a string, the query`?{
   query_var}={term_slug}` will be valid.
 * `update_count_callback` callable
 * Works much like a hook, in that it will be called when the count is updated. 
   Default [_update_post_term_count()](https://developer.wordpress.org/reference/functions/_update_post_term_count/)
   for taxonomies attached to post types, which confirms that the objects are published
   before counting them. Default [_update_generic_term_count()](https://developer.wordpress.org/reference/functions/_update_generic_term_count/)
   for taxonomies attached to other object types, such as users.
 * `default_term` string|array
 *  Default term to be used for the taxonomy.
    - `name` string
    - Name of default term.
    - `slug` string
    - Slug for default term.
    - `description` string
    - Description for default term.
 * `sort` bool
 * Whether terms in this taxonomy should be sorted in the order they are provided
   to `wp_set_object_terms()`. Default null which equates to false.
 * `args` array
 * Array of arguments to automatically use inside `wp_get_object_terms()` for this
   taxonomy.
 * `_builtin` bool
 * This taxonomy is a "built-in" taxonomy. INTERNAL USE ONLY! Default false.

`$taxonomy`string

Taxonomy key.

`$object_type`string[]

Array of names of object types for the taxonomy.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#source)󠁿

    ```php
    $args = apply_filters( "register_{$taxonomy}_taxonomy_args", $args, $this->name, (array) $object_type );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-taxonomy.php#L337)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-taxonomy.php#L337-L337)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Taxonomy::set_props()](https://developer.wordpress.org/reference/classes/wp_taxonomy/set_props/)`wp-includes/class-wp-taxonomy.php` |

Sets taxonomy properties.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/register_taxonomy_taxonomy_args/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.0.0](https://developer.wordpress.org/reference/since/6.0.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregister_taxonomy_taxonomy_args%2F)
before being able to contribute a note or feedback.