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 function:
Return

Nothing (null).

Usage

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

Code of edit_tag_link: wp-includes/link-template.php VER 4.9.8

<?php
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