Codex

Template Tags/edit tag link

Contents

Description

Displays a link to edit the current tag, if the user is logged in and allowed to edit the tag. It must be within The Loop.

Usage

 <?php edit_tag_link$link$before$after$tag ); ?> 

Parameters

$link
(string) (optional) The link text.
Default: 'Edit This'
$before
(string) (optional) Text to put before the link text.
Default: None
$after
(string) (optional) Text to put after the link text.
Default: None
$tag
(int) (optional) Tag ID.
Default: Current tag ID.

Examples

Default Usage

Displays edit tag link using defaults.

<?php edit_tag _link(); ?>

Displays Edit Tag in Paragraph Tag

Displays edit tag link, with link text "edit tag", in a paragraph (<p>) tag.

<?php edit_comment_link('edit tag', '<p>', '</p>'); ?>

Change Log

Since: 2.7.0

Source File

edit_tag_link() is located in wp-includes/link-template.php.

Related

edit_post_link, edit_comment_link, edit_tag_link, edit_bookmark_link

See also index of Function Reference and index of Template Tags.