2020-05-01 / 2716阅 / 悠然
Retrieves the permalink for the current page or page ID.
Respects page_on_front. Use this>
(int|WP_Post)
(Optional)
Post ID or object. Default uses the global $post.
Default value: false
(bool)
(Optional)
Whether to keep the page name.
Default value: false
(bool)
(Optional)
Whether it should be treated as a sample permalink.
Default value: false
(string) The page permalink.