registered_taxonomy_post_tag
Fires after a specific taxonomy is registered.
This is one of the variants of the dynamic hook registered_taxonomy_(taxonomy)
Usage
add_action( 'registered_taxonomy_post_tag', 'wp_kama_registered_taxonomy_post_tag_action', 10, 3 ); /** * Function for `registered_taxonomy_post_tag` action-hook. * * @param string $taxonomy Taxonomy slug. * @param array|string $object_type Object type or array of object types. * @param array $args Array of taxonomy registration arguments. * * @return void */ function wp_kama_registered_taxonomy_post_tag_action( $taxonomy, $object_type, $args ){ // action... }
- $taxonomy(string)
- Taxonomy slug.
- $object_type(array|string)
- Object type or array of object types.
- $args(array)
- Array of taxonomy registration arguments.
Changelog
Since 6.0.0 | Introduced. |
Where the hook is called
registered_taxonomy_post_tag
wp-includes/taxonomy.php 588
do_action( "registered_taxonomy_{$taxonomy}", $taxonomy, $object_type, (array) $taxonomy_object );