get_tag_link( int|object $tag ): string

Retrieves the link to the tag.

Description

See also

Parameters

$tagint|objectrequired
Tag ID or object.

Return

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

Source

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

Changelog

VersionDescription
2.3.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.