get_tag_link() – Retrieve the link to the tag.

You appear to be a bot. Output may be restricted

Description

Retrieves the link to the tag.

Usage

$string = get_tag_link( $tag );

Parameters

$tag
( int|object ) required – Tag ID or object.

Returns

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

Source

File name: wordpress/wp-includes/category-template.php
Lines:

1 to 3 of 3
function get_tag_link( $tag ) {
  return get_category_link( $tag );
}
 

 View on GitHub View on Trac