WordPress at Your Fingertips

get_tag_link() WP 1.0

Retrieve the link to the tag.

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

Changelog

Since 2.3.0 Introduced.

Code of get_tag_link() WP 5.8.1

function get_tag_link( $tag ) {
	return get_category_link( $tag );
}

permalinks (clean friendly URL)

Tags

No comments
    Log In