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.
Parameters
- $post_link
-
The post's permalink.
- $post
-
The post in question.
- $leavename
-
Whether to keep the post name.
- $sample
-
Is it a sample permalink.
Source
Changelog
Version | Description |
---|---|
WP-3.0.0 | Introduced. |