2020-05-01 / 4622阅 / 悠然
Retrieves the permalink for an attachment.
This can be used in the WordPress Loop or outside of it.
(int|object)
(Optional)
Post ID or object. Default uses the global $post.
Default value: null
(bool)
(Optional)
Whether to keep the page name.
Default value: false
(string) The attachment permalink.