Title: edit_term_{$field}
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( “edit_term_{$field}”, mixed $value, int $term_id, string $taxonomy )

## In this article

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

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

Filters a term field to edit before it is sanitized.

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

The dynamic portion of the hook name, `$field`, refers to the term field.

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

 `$value`mixed

Value of the term field.

`$term_id`int

Term ID.

`$taxonomy`string

Taxonomy slug.

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

    ```php
    $value = apply_filters( "edit_term_{$field}", $value, $term_id, $taxonomy );
    ```

[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#L1801)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/taxonomy.php#L1801-L1801)

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

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

Sanitizes the field value in the term based on the context.

  |

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

| Version | Description | 
| [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%2Fedit_term_field%2F)
before being able to contribute a note or feedback.