get_post_type_archive_feed_link

SummerySummery

Retrieves the permalink for a post type archive feed.

Syntax

get_post_type_archive_feed_link( string $post_type, string $feed = '' )

ParametersParameters

$post_type

(string) (Required) Post type

$feed

(string) (Optional) Feed type. Possible values include 'rss2', 'atom'. Default is the value of get_default_feed().

Default value: ''

ReturnReturn

(string|false) The post type feed permalink.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
3.1.0 Introduced.
Scroll to Top