Core Function
View Source on Trac ↗ get_post_type_archive_feed_link()
get_post_type_archive_feed_link( mixed $post_type, mixed $feed = '' ) Retrieves the permalink for a post type archive feed.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $post_type string | Post type. Required |
| string | $feed Optional. Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed(). Required |
Return Value
((string)
(string | false) The post type feed permalink. False if the post type
does not exist or does not have an archive.
Function Information
Since Version
3.1.0
Source File
wp-includes/link-template.php
Advertisement