WordPress at a glance

get_tag_link() WP 1.0

Retrieve the link to the tag.

  • See: get_term_link()
Works based on: get_term_link()

No Hooks.


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


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

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

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