WordPress at a glance

edit_tag_link() WP 1.0

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

Works based on: edit_term_link()
Hooks from the function

Null. Nothing.


edit_tag_link( $link, $before, $after, $tag );
Anchor text.
Default: ''
Display before edit link.
Default: ''
Display after edit link.
Default: ''
Term object. If null, the queried object will be inspected.
Default: null


Since 2.7.0 Introduced.

Code of edit tag link: wp-includes/link-template.php WP 5.2.4

function edit_tag_link( $link = '', $before = '', $after = '', $tag = null ) {
	$link = edit_term_link( $link, '', '', $tag, false );

	 * Filters the anchor tag for the edit link for a tag (or term in another taxonomy).
	 * @since 2.7.0
	 * @param string $link The anchor tag for the edit link.
	echo $before . apply_filters( 'edit_tag_link', $link ) . $after;

Related Functions

From tag: edit_

More from category: Tags

More from Template Tags: Links (URL)

No comments
    Hello, !     Log In . Register