Title: wp_update_term_data
Published: December 6, 2016
Last modified: February 24, 2026

---

# apply_filters( ‘wp_update_term_data’, array $data, int $term_id, string $taxonomy, array $args )

## In this article

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

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

Filters term data before it is updated in the database.

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

 `$data`array

Term data to be updated.

`$term_id`int

Term 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/wp_update_term_data/?output_format=md#source)󠁿

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

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

| Version | Description | 
| [4.7.0](https://developer.wordpress.org/reference/since/4.7.0/) | Introduced. |

## User Contributed Notes

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