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

---

# get_edit_tag_link( int|WP_Term|object $tag, string $taxonomy = 'post_tag' ): string

## In this article

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

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

Retrieves the edit link for a tag.

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

 `$tag`int|[WP_Term](https://developer.wordpress.org/reference/classes/wp_term/)
|objectrequired

The ID or term object whose edit link will be retrieved.

`$taxonomy`stringoptional

Taxonomy slug. Default `'post_tag'`.

Default:`'post_tag'`

## 󠀁[Return](https://developer.wordpress.org/reference/functions/get_edit_tag_link/?output_format=md#return)󠁿

 string The edit tag link URL for the given tag.

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

    ```php
    function get_edit_tag_link( $tag, $taxonomy = 'post_tag' ) {
    	/**
    	 * Filters the edit link for a tag (or term in another taxonomy).
    	 *
    	 * @since 2.7.0
    	 *
    	 * @param string $link The term edit link.
    	 */
    	return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag, $taxonomy ) );
    }
    ```

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

## 󠀁[Hooks](https://developer.wordpress.org/reference/functions/get_edit_tag_link/?output_format=md#hooks)󠁿

 [apply_filters( ‘get_edit_tag_link’, string $link )](https://developer.wordpress.org/reference/hooks/get_edit_tag_link/)

Filters the edit link for a tag (or term in another taxonomy).

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

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

Retrieves the URL for editing a given term.

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

Calls the callback functions that have been added to a filter hook.

  |

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

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

## User Contributed Notes

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