created_term action-hook . WP 2.3.0
Fires after a new term is created, and after the term cache has been cleaned.
The 'created_(taxonomy)' hook is also available for targeting a specific taxonomy.
Usage
add_action( 'created_term', 'action_function_name_3045', 10, 3 ); function action_function_name_3045( $term_id, $tt_id, $taxonomy ){ // action... }
- $term_id(int)
- Term ID.
- $tt_id(int)
- Term taxonomy ID.
- $taxonomy(string)
- Taxonomy slug.
Changelog
Since 2.3.0 | Introduced. |
Where the hook is called
created_term
wp-includes/taxonomy.php 2482
do_action( 'created_term', $term_id, $tt_id, $taxonomy );