Title: edited_{$taxonomy}
Published: April 25, 2014
Last modified: February 24, 2026

---

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

## In this article

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

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

Fires after a term for a specific taxonomy has been updated, and the term cache 
has been cleaned.

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

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

Possible hook names include:

 * `edited_category`
 * `edited_post_tag`

## 󠀁[Parameters](https://developer.wordpress.org/reference/hooks/edited_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.

## 󠀁[More Information](https://developer.wordpress.org/reference/hooks/edited_taxonomy/?output_format=md#more-information)󠁿

The `edit_$taxonomy` action is used to hook into code **after** a custom taxonomy
term is updated in the database.

A plugin (or theme) can register an action hook from the example below.

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

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

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

 1.   [Skip to note 3 content](https://developer.wordpress.org/reference/hooks/edited_taxonomy/?output_format=md#comment-content-4477)
 2.    [Akira Tachibana](https://profiles.wordpress.org/atachibana/)  [  6 years ago  ](https://developer.wordpress.org/reference/hooks/edited_taxonomy/#comment-4477)
 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%2Fedited_taxonomy%2F%23comment-4477)
     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%2Fedited_taxonomy%2F%23comment-4477)
 4.  Example from Codex
 5.      ```php
         <?php 
         add_action( 'edited_custom_taxonomy', 'custom_term_slug_edit_success', 10, 2 );
     
         /**
          * Custom redirect on taxonomy term update, keeps users on the term page for additional updates
          *
          * @param $term_id
          * @param $tt_id
          */
         function custom_term_slug_edit_success( $term_id, $tt_id ) {
     
             // Get the taxonomy slug.
             $term = get_term( $term_id );
             $tax_slug = $term->taxonomy;
     
             // Setup the redirect URL.
             $tax_param = '&taxonomy=' . $taxonomy_slug;
             $term_param = '&tag_ID=' . $term_id;
             $notice_param = '&notice=success';
             $redirect_url = admin_url( 'edit-tags.php?action=edit' . $tax_param . $tag_param . $notice_param );
     
             // Redirect with new query strings.
             wp_safe_redirect( $redirect_url );
             exit;
     
         }
         ?>
         ```
     
 6.   [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fedited_taxonomy%2F%3Freplytocom%3D4477%23feedback-editor-4477)
 7.   [Skip to note 4 content](https://developer.wordpress.org/reference/hooks/edited_taxonomy/?output_format=md#comment-content-4367)
 8.    [Collins Mbaka](https://profiles.wordpress.org/collinsmbaka/)  [  6 years ago  ](https://developer.wordpress.org/reference/hooks/edited_taxonomy/#comment-4367)
 9.  [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%2Fedited_taxonomy%2F%23comment-4367)
     Vote results for this note: -1[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%2Fedited_taxonomy%2F%23comment-4367)
 10.     ```php
         add_action( 'edited_custom_taxonomy', 'custom_term_slug_edit_success', 10, 2 );
     
         /**
          * Custom redirect on taxonomy term update, keeps users on the term page for additional updates
          *
          * @param $term_id
          * @param $tt_id
          */
         function custom_term_slug_edit_success( $term_id, $tt_id ) {
     
             // Get the taxonomy slug.
             $term = get_term( $term_id );
             $tax_slug = $term->taxonomy;
     
             // Setup the redirect URL.
             $tax_param = '&taxonomy=' . $taxonomy_slug;
             $term_param = '&tag_ID=' . $term_id;
             $notice_param = '&notice=success';
             $redirect_url = admin_url( 'edit-tags.php?action=edit' . $tax_param . $tag_param . $notice_param );
     
             // Redirect with new query strings.
             wp_safe_redirect( $redirect_url );
             exit;
     
         }
         ```
     
 11.  [Log in to add feedback](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fhooks%2Fedited_taxonomy%2F%3Freplytocom%3D4367%23feedback-editor-4367)

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