get_tag_link( int|object $tag ): string

Retrieves the link to the tag.


Description

Top ↑

See also


Top ↑

Parameters

$tag int|object Required
Tag ID or object.

Top ↑

Return

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


Top ↑

Source

File: wp-includes/category-template.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
2.3.0 Introduced.

Top ↑

User Contributed Notes

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