Used By
| Used By | Description |
|---|---|
| wp-includes/link-template.php: get_post_permalink() | Retrieves the permalink for a post of a custom post type. |
Filters the permalink for a post of a custom post type.
(string) The post's permalink.
(WP_Post) The post in question.
(bool) Whether to keep the post name.
(bool) Is it a sample permalink.
post_type_link is a filter applied to the permalink URL for a post or custom post type prior to being returned by the function get_post_permalink() .
| Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/post_type_link