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.
Source
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |