Title: edit_{$taxonomy}
Published: April 25, 2014
Last modified: May 20, 2026

---

# do_action( “edit_{$taxonomy}”, int $term_id, int $tt_id, array $args )

## In this article

 * [Description](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#description)
 * [Parameters](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#parameters)
 * [Source](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#changelog)
 * [User Contributed Notes](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#user-contributed-notes)

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

Fires after a term in a specific taxonomy has been updated, but before the term 
cache has been cleaned.

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

The dynamic portion of the hook name, `$taxonomy`, refers to the taxonomy slug.

Possible hook names include:

 * `edit_category`
 * `edit_post_tag`

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

 `$term_id`int

Term ID.

`$tt_id`int

Term taxonomy ID.

`$args`array

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

More Arguments from wp_update_term( … $args )

Array of arguments for updating 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/edit_$taxonomy/?output_format=md#source)󠁿

    ```php
    do_action( "edit_{$taxonomy}", $term_id, $tt_id, $args );
    ```

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

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

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

Updates term based on arguments provided.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?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](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#user-contributed-notes)󠁿

 1.  [Skip to note 2 content](https://developer.wordpress.org/reference/hooks/edit_$taxonomy/?output_format=md#comment-content-6337)
 2.   [mujuonly](https://profiles.wordpress.org/mujuonly/)  [  3 years ago  ](https://developer.wordpress.org/reference/hooks/edit_taxonomy/#comment-6337)
 3. [You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fedit_taxonomy%2F%23comment-6337)
    Vote results for this note: 0[You must log in to vote on the helpfulness of this note](https://login.wordpress.org?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fedit_taxonomy%2F%23comment-6337)
 4. The callback function receives 3 arguments. The third parameter $args is added 
    in WP 6.1.
 5.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fedit_taxonomy%2F%3Freplytocom%3D6337%23feedback-editor-6337)

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