WordPress at a glance

get_tag_link() WP 1.0

Retrieve the link to the tag.

Works based on: get_term_link()

No Hooks.

Return

String. Link on success, empty string if tag does not exist.

Usage

get_tag_link( $tag );
$tag(int/object) (required)
Tag ID or object.

Notes

  • See: get_term_link()

Changelog

Since 2.3.0 Introduced.

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

<?php
function get_tag_link( $tag ) {
	return get_category_link( $tag );
}

Related Functions

From tag: permalinks (clean friendly URL)

More from category: Tags

No comments
    Hello, !     Log In . Register