post_type_archive_link WordPress Filter Hook

The post_type_archive_link hook is used to filter the link for a post type archive. This hook is used when generating the URL for a post type archive.

apply_filters( 'post_type_archive_link', string $link, string $post_type ) #

Filters the post type archive permalink.


Parameters

$link

(string)The post type archive permalink.

$post_type

(string)Post type name.


Top ↑

Source

File: wp-includes/link-template.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More
Show More