函数原型
get_tag_link( int|object $tag ): string
函数描述
Retrieves the link to the tag.
是否弃用
未弃用
函数参数
-
$tag
int|object
Required - Tag ID or object.
函数返回值
string Link on success, empty string if tag does not exist.
函数位置
File: wp-includes/category-template.php.
函数源码
function get_tag_link( $tag ) {
return get_category_link( $tag );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.3.0 | Introduced. |

