registered_taxonomy WordPress Action Hook

The registered_taxonomy hook is one of the most important hooks in WordPress. It is used to register new taxonomies with WordPress. Taxonomies are used to group related items together. For example, the category taxonomy is used to group posts together. The registered_taxonomy hook allows developers to create new taxonomies and add them to WordPress.

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

Fires after a taxonomy is registered.


Parameters

$taxonomy

(string)Taxonomy slug.

$object_type

(array|string)Object type or array of object types.

$args

(array)Array of taxonomy registration arguments.


Top ↑

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.


Top ↑

Source

File: wp-includes/taxonomy.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.3.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More