get_tag_link

Sponsored Link

指定されたタグIDの現在のリンクURLを返します。

Sponsored Link

Returns the correct link url for a given Tag ID.

get_tag_linkのファンクションタグ使用方法

<a href="<?php echo get_tag_link($tag_id); ?>">tag name</a>

get_tag_linkのパラメーター

tag_id

(numeric)タグID

(numeric) The Tag ID.

戻り値

(URL)
(string)
タグへのリンクがあるURLを指定します。

(URL)
(string) URL with a link to the tag.

フィルター

この関数の出力は、’tag_link’フィルターによってフィルタリングされます。最初の引数($taglink)は正常にそれを出力するだろう関数としてのURLであり、第二は関数に渡されたIDです。

Output from this function is filtered by the ‘tag_link’ filter. The first argument ($taglink) is the url as the function would normally output it, the second is the ID passed into the function.

apply_filters('tag_link', $taglink, $tag_id);

ソースファイル

get_tag_link()は、wp-includes/category-template.php内に位置しています。

get_tag_link() is located in wp-includes/category-template.php.

Sponsored Link