Title: edit_term_link
Published: April 25, 2014
Last modified: May 20, 2026

---

# apply_filters( ‘edit_term_link’, string $link, int $term_id )

## In this article

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

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

Filters the anchor tag for the edit link of a term.

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

 `$link`string

The anchor tag for the edit link.

`$term_id`int

Term ID.

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

    ```php
    $link = $before . apply_filters( 'edit_term_link', $link, $term->term_id ) . $after;
    ```

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

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

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

Displays or retrieves the edit term link with formatting.

  |

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

| Version | Description | 
| [3.1.0](https://developer.wordpress.org/reference/since/3.1.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_link%2F)
before being able to contribute a note or feedback.