API / Minn\Runtime / ArchiveLinks

ArchiveLinks final class

Minn\Runtime\ArchiveLinks · public/minn/src/Minn/Runtime/ArchiveLinks.php · 41 lines

A post type's archive address and its feed, as the reference gives them (probe archive-links). The posts' archive is the posts page when the front is a page with one, else the bare home; a type with an archive lives under its named archive or its rewrite slug (after the structure's front unless it declines it), or at ?post_type= without rewrites or pretty permalinks; any other type has none (false, no filter). Its feed is the archive's /feed/ (/feed/{type}/ for one not the default) when the type's rewrite takes feeds, else ?feed= with the type spelled out.

Public

staticarchive(string $postType): string|false#

get_post_type_archive_link.

staticfeed(string $postType, string $feed): string|false#

get_post_type_archive_feed_link.