WPDev.one
Core Function
View Source on Trac ↗

get_post_type_archive_link()

get_post_type_archive_link( mixed $post_type )

Retrieves the permalink for a post type archive.

Parameters 1 required

Name / Type Description
$post_type
string

Post type.

Required

Return Value

((string)
(string | false) The post type archive 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