wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



get_category_feed_link › WordPress Function

Od2.5.0
Przestarzałyn/a
get_category_feed_link ( $cat, $feed = '' )
Parametry: (2)
  • (int|WP_Term|object) $cat The ID or category object whose feed link will be retrieved.
    Wymagane: Tak
  • (string) $feed Optional. Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().
    Wymagane: Nie
    Domyślny: (puste)
Powrót:
  • (string) Link to the feed for the category specified by `$cat`.
Zdefiniowane na:
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.


Źródło

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