get_post_type_archive_link

SummerySummery

Retrieves the permalink for a post type archive.

Syntax

get_post_type_archive_link( string $post_type )

ParametersParameters

$post_type

(string) (Required) Post type.

ReturnReturn

(string|false) The post type archive permalink.

SourceSource

File: wp-includes/link-template.php


			

ChangelogChangelog

Changelog
Version Description
4.5.0 Support for posts was added.
3.1.0 Introduced.
Scroll to Top