首页 WordPress函数大全 get_term_feed_link()

get_term_feed_link()

2020-05-01 / 3017阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

get_term_feed_link( int $term_id, string $taxonomy = 'category', string $feed = '' )

Retrieves the feed link for a term.

描述

Returns a link to the feed for all posts in a given term. A specific feed can be requested or left blank to get the default feed.

参数

$term_id

(int)
(Required)
Term ID.

$taxonomy

(string)
(Optional)
Taxonomy of $term_id.

Default value: 'category'

$feed

(string)
(Optional)
Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().

Default value: ''

返回

(string|false) Link to the feed for the term specified by $term_id and $taxonomy.

大家谈论
    我的见解