get_tag_link

函数


get_tag_link ( $tag )
参数
  • (int|object)
    $tag
    Tag ID or object.
    Required:
返回值
  • (string) Link on success, empty string if tag does not exist.
相关
  • get_term_link()
定义位置
  • wp-includes/category-template.php
    , line 1163
引入
2.3.0
弃用

检索标签的链接。

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