WordPress at a glance

get_tag_link() WP 1.0

Retrieve the link to the tag.

Notes:

  • See: get_term_link()
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.

Code of get_tag_link: wp-includes/category-template.php VER 4.9.8

<?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