Function: edit_tag_link

edit_tag_link( string $link, string $before, string $after, WP_Term $tag )

Displays or retrieves the edit link for a tag with formatting.

Shortcut: etl

You can use above key combination to trigger the associated snippet for this function in the WordPress Snippets for Visual Studio Code extension. You can also use this shortcut to search for this function on this website.


Name Type(s) Default Value Description
$link string ''

Optional. Anchor text. Default empty.

$before string ''

Optional. Display before edit link. Default empty.

$after string ''

Optional. Display after edit link. Default empty.

$tag WP_Term null

Optional. Term object. If null, the queried object will be inspected. Default null.

WordPress Developer Newsletter

Stay informed of new chapter releases, important WordPress API updates and more.