do_action( “created_{$taxonomy}”, , , )
In this article
Fires after a new term in a specific taxonomy is created, and after the term cache has been cleaned.
Description
The dynamic portion of the hook name, $taxonomy, refers to the taxonomy slug.
Possible hook names include:
created_categorycreated_post_tag
Parameters
$term_idint- Term ID.
$tt_idint- Term taxonomy ID.
$argsarray- Arguments passed to wp_insert_term() .
Source
do_action( "created_{$taxonomy}", $term_id, $tt_id, $args );
Related
| Used by | Description |
|---|---|
wp_insert_term()wp-includes/taxonomy.php | Adds a new term to the database. |
Changelog
User Contributed Notes
You must log in before being able to contribute a note or feedback.
