Title: created_term
Published: April 25, 2014
Last modified: February 24, 2026

---

# do_action( ‘created_term’, int $term_id, int $tt_id, string $taxonomy, array $args )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#changelog)

[ Back to top](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#wp--skip-link--target)

Fires after a new term is created, and after the term cache has been cleaned.

## 󠀁[Description](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#description)󠁿

The [‘created_$taxonomy’](https://developer.wordpress.org/reference/hooks/created_taxonomy/)
hook is also available for targeting a specific taxonomy.

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#parameters)󠁿

 `$term_id`int

Term ID.

`$tt_id`int

Term taxonomy ID.

`$taxonomy`string

Taxonomy slug.

`$args`array

Arguments passed to [wp_insert_term()](https://developer.wordpress.org/reference/functions/wp_insert_term/).

More Arguments from wp_insert_term( … $args )

Array or query string of arguments for inserting a term.

 * `alias_of` string
 * Slug of the term to make this term an alias of.
    Accepts a term slug.
 * `description` string
 * The term description.
 * `parent` int
 * The id of the parent term. Default 0.
 * `slug` string
 * The term slug to use.

## 󠀁[Source](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#source)󠁿

    ```php
    do_action( 'created_term', $term_id, $tt_id, $taxonomy, $args );
    ```

[View all references](https://developer.wordpress.org/reference/files/wp-includes/taxonomy.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/6.9.4/src/wp-includes/taxonomy.php#L2727)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/taxonomy.php#L2727-L2727)

## 󠀁[Related](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#related)󠁿

| Used by | Description | 
| [wp_insert_term()](https://developer.wordpress.org/reference/functions/wp_insert_term/)`wp-includes/taxonomy.php` |

Adds a new term to the database.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/created_term/?output_format=md#changelog)󠁿

| Version | Description | 
| [6.1.0](https://developer.wordpress.org/reference/since/6.1.0/) | The `$args` parameter was added. | 
| [2.3.0](https://developer.wordpress.org/reference/since/2.3.0/) | Introduced. |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fcreated_term%2F)
before being able to contribute a note or feedback.