WordPress at Your Fingertips

edit_tag_link() WP 1.0

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

Hooks from the function


null. Nothing.


edit_tag_link( $link, $before, $after, $tag );
Anchor text. If empty. Default empty.
Default: 'Edit This'
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 5.8.1

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;



Links (URL)

No comments
    Log In