2020-05-01 / 3450阅 / 悠然
Retrieves the full permalink for the current post or post ID.
(int|WP_Post)
(Optional)
Post ID or post object. Default is the global $post.
(bool)
(Optional)
Whether to keep post name or page name.
Default value: false
(string|false) The permalink URL or false if post does not exist.