2020-05-01 / 4332阅 / 悠然
Retrieves the permalink for a post of a custom post type.
(int|WP_Post)
(Optional)
Post ID or post object. Default is the global $post.
(bool)
(Optional)
defaults to false. Whether to keep post name.
Default value: false
(bool)
(Optional)
defaults to false. Is it a sample permalink.
Default value: false
(string|WP_Error) The post permalink.