get_tag_link

Advertisement

Summery Summery

Retrieve the link to the tag.

Syntax Syntax

get_tag_link( int|object $tag )

Parameters Parameters

$tag

(Required) Tag ID or object.

Return Return

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

Source Source

File: wp-includes/category-template.php

 *
 * @since 2.1.0
 * @since 5.3.0 Formalized the existing `...$args` parameter by adding it

Advertisement

Changelog Changelog

Changelog
Version Description
2.3.0 Introduced.

See also See also

Advertisement

Leave a Reply