Glossary Term
get_preview_post_link()
3 tags
1 category
get_preview_post_link() — Retrieves the URL used for the post preview. Allows additional query args to be appended.
Inputs: $post (int|WP_Post): Optional. Post ID or WP_Post object. Defaults to global $post. $query_args (array): Optional. Array of additional query args to be appended to the link. Default empty array. $preview_link (string): Optional. Base preview link to be used if it should differ from the post permalink. Default empty.
Returns string|null: URL used for the post preview, or null if the post does not exist.
Term Connections
Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.
Loading term connections…
