apply_filters( 'post_type_link', string $post_link , WP_Post $post , bool $leavename , bool $sample )
Filters the permalink for a post of a custom post type.
Description Description
Parameters Parameters
- $post_link
-
(string) The post's permalink.
- $post
-
(WP_Post) The post in question.
- $leavename
-
(bool) Whether to keep the post name.
- $sample
-
(bool) Is it a sample permalink.
Source Source
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |