get_tag_feed_link()WP 2.3.0

Retrieves the permalink for a tag feed.

Хуков нет.

Возвращает

Строку. The feed permalink for the given tag.

Использование

get_tag_feed_link( $tag, $feed );
$tag(int|WP_Term|объект) (обязательный)
The ID or term object whose feed link will be retrieved.
$feed(строка)
Feed type. Possible values include 'rss2', 'atom'.
По умолчанию: value of get_default_feed()

Список изменений

С версии 2.3.0 Введена.

Код get_tag_feed_link() WP 6.5.2

function get_tag_feed_link( $tag, $feed = '' ) {
	return get_term_feed_link( $tag, 'post_tag', $feed );
}