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

---

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

## In this article

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

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

Fires immediate before a term-taxonomy relationship is updated.

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

 `$tt_id`int

Term taxonomy ID.

`$taxonomy`string

Taxonomy slug.

`$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_term_taxonomy/?output_format=md#source)󠁿

    ```php
    do_action( 'edit_term_taxonomy', $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#L3398)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/6.9.4/src/wp-includes/taxonomy.php#L3398-L3398)

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

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

Updates term count based on object types of the current taxonomy.

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

Updates term count based on number of objects.

  | 
| [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_term_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.9.0](https://developer.wordpress.org/reference/since/2.9.0/) | Introduced. |

## User Contributed Notes

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