Un motore di ricerca WordPress per sviluppatori e autori di temi



get_category_feed_link ›

Da2.5.0
Deprecaton/a
get_category_feed_link ( $cat_id, $feed = '' )
Parametri: (2)
  • (int) $cat_id Category ID.
    Richiesto:
  • (string) $feed Optional. Feed type. Default empty.
    Richiesto: No
    Default: (vuoto)
Ritorna:
  • (string) Link to the feed for the category specified by $cat_id.
Definito a:
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.



Sorgenti

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