检索标记的链接。
原型
get_tag_link( int|object $tag )
参数
$tag
(int|object)
(Required)
标签ID或对象。
返回值
(string)
成功链接,如果标签不存在则为空字符串。
源文件
路径:wp-includes/category-template.php
<?php
...
function get_tag_link( $tag ) {
return get_category_link( $tag );
}
...
?>
其他
英文文档:https://developer.wordpress.org/reference/functions/get_tag_link/