2020-05-01 / 2086阅 / 悠然
Retrieves the URL used for the post preview.
Allows additional query args to be appended.
(int|WP_Post)
(Optional)
Post ID or WP_Post object. Defaults to global $post.
Default value: null
(array)
(Optional)
Array of additional query args to be appended to the link.
Default value: array()
(string)
(Optional)
Base preview link to be used if it should differ from the post permalink.
Default value: ''
(string|null) URL used for the post preview, or null if the post does not exist.