Outil de recherche WordPress pour les développeurs et auteurs de thèmes



get_category_feed_link ›

Depuis2.5.0
Dépréciéen/a
get_category_feed_link ( $cat_id, $feed = '' )
Paramètres: (2)
  • (int) $cat_id Category ID.
    Requis: Oui
  • (string) $feed Optional. Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().
    Requis: Non
    Défaut: (vide)
Retourne:
  • (string) Link to the feed for the category specified by $cat_id.
Défini(e) dans:
Codex:

Retrieves the feed link for a category.

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



Source

function get_category_feed_link( $cat_id, $feed = '' ) {
	return get_term_feed_link( $cat_id, 'category', $feed );
}