Filter hook 'post_type_archive_link'

in WP Core File wp-includes/link-template.php at line 1321

Description

Retrieves the permalink for a post type archive. does not exist or does not have an archive.

Occurrences

Filename Line Number
wp-includes/link-template.php 1321
wp-includes/link-template.php 1348

Parameters

Type Name Description
string $post_type Post type.

PHP Doc

/**
 * Retrieves the permalink for a post type archive.
 *
 * @since 3.1.0
 * @since 4.5.0 Support for posts was added.
 *
 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
 *
 * @param string $post_type Post type.
 * @return string|false The post type archive permalink. False if the post type
 *                      does not exist or does not have an archive.
 */