get_edit_tag_link() WordPress Function

The get_edit_tag_link() function is used to get the URL for editing a tag in the WordPress admin. This function is located in wp-includes/link-template.php.

get_edit_tag_link( int|WP_Term|object $tag, string $taxonomy = 'post_tag' ) #

Retrieves the edit link for a tag.


Parameters

$tag

(int|WP_Term|object)(Required)The ID or term object whose edit link will be retrieved.

$taxonomy

(string)(Optional) Taxonomy slug.

Default value: 'post_tag'


Top ↑

Return

(string) The edit tag link URL for the given tag.


Top ↑

Source

File: wp-includes/link-template.php

function get_edit_tag_link( $tag, $taxonomy = 'post_tag' ) {
	/**
	 * Filters the edit link for a tag (or term in another taxonomy).
	 *
	 * @since 2.7.0
	 *
	 * @param string $link The term edit link.
	 */
	return apply_filters( 'get_edit_tag_link', get_edit_term_link( $tag, $taxonomy ) );
}


Top ↑

Changelog

Changelog
VersionDescription
2.7.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More