Title: registered_taxonomy
Published: April 25, 2014
Last modified: May 20, 2026

---

# do_action( ‘registered_taxonomy’, string $taxonomy, array|string $object_type, array $args )

## In this article

 * [Parameters](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#parameters)
 * [More Information](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#more-information)
 * [Source](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#user-contributed-notes)

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

Fires after a taxonomy is registered.

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

 `$taxonomy`string

Taxonomy slug.

`$object_type`array|string

Object type or array of object types.

`$args`array

Array of taxonomy registration arguments.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#more-information)󠁿

registered_taxonomy is a hook triggered after a custom taxonomy has been registered.
This hook provides the taxonomy key, the name of the object type for the taxonomy
object, and arguments used to register the taxonomy as parameters.

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

    ```php
    do_action( 'registered_taxonomy', $taxonomy, $object_type, (array) $taxonomy_object );
    ```

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

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

| Used by | Description | 
| [register_taxonomy()](https://developer.wordpress.org/reference/functions/register_taxonomy/)`wp-includes/taxonomy.php` |

Creates or modifies a taxonomy object.

  |

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

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

## 󠀁[User Contributed Notes](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/registered_taxonomy/?output_format=md#comment-content-4440)
 2.   [Collins Mbaka](https://profiles.wordpress.org/collinsmbaka/)  [  6 years ago  ](https://developer.wordpress.org/reference/hooks/registered_taxonomy/#comment-4440)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregistered_taxonomy%2F%23comment-4440)
    Vote results for this note: -2[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregistered_taxonomy%2F%23comment-4440)
 4.     ```php
        /**
         * Example of registered_taxonomy usage
         * @param string $taxonomy Taxonomy key.
         * @param array|string $object_type Name of the object type for the taxonomy object.
         * @param array|string $args Optional args used in taxonomy registration.
         */
        function wporg_registered_taxonomy_example( $taxonomy, $object_type, $args ) {
        	if ( 'customtax' == $taxonomy ) {
        		// Do something after customtax is registered as custom taxonomy
        	}
        }
        add_action( 'registered_taxonomy', 'wporg_registered_taxonomy_example', 10, 3 );
        ```
    
 5.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fregistered_taxonomy%2F%3Freplytocom%3D4440%23feedback-editor-4440)

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