Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



get_category_feed_link ›

Seit2.5.0
Veraltetn/v
get_category_feed_link ( $cat_id, $feed = '' )
Parameter: (2)
  • (int) $cat_id Category ID.
    Erforderlich: Ja
  • (string) $feed Optional. Feed type. Default empty.
    Erforderlich: Nein
    Standard: (leer)
Gibt zurück:
  • (string) Link to the feed for the category specified by $cat_id.
Definiert in:
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.



Quellcode

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