registered_taxonomy_{$taxonomy} WordPress Action Hook
The registered_taxonomy_{$taxonomy} hook is triggered after a taxonomy is registered. It can be used to perform actions when a new taxonomy is registered.
do_action( "registered_taxonomy_{$taxonomy}", string $taxonomy , array|string $object_type , array $args ) #
Fires after a specific taxonomy is registered.
Description
The dynamic portion of the filter name, $taxonomy
, refers to the taxonomy key.
Possible hook names include:
registered_taxonomy_category
registered_taxonomy_post_tag
Parameters
- $taxonomy
(string)Taxonomy slug.
- $object_type
(array|string)Object type or array of object types.
- $args
(array)Array of taxonomy registration arguments.
Source
File: wp-includes/taxonomy.php
Changelog
Version | Description |
---|---|
6.0.0 | Introduced. |