Title: Generate links programatically?
Last modified: September 8, 2018

---

# Generate links programatically?

 *  [themj](https://wordpress.org/support/users/mayurj/)
 * (@mayurj)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/generate-links-programatically/)
 * Is it possible to generate these preview links via a function call? Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Nagmay](https://wordpress.org/support/users/gabrielmcgovern/)
 * (@gabrielmcgovern)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/generate-links-programatically/#post-10862184)
 * Not quite sure what you mean. The links are simply based on the post ID:
    ?page_id
   =1829&preview=true
 * These are the same links that WP uses to let logged in users preview the page.

Viewing 1 replies (of 1 total)

The topic ‘Generate links programatically?’ is closed to new replies.

 * ![](https://ps.w.org/simple-preview/assets/icon-128x128.png?rev=1625328)
 * [Simple Preview](https://wordpress.org/plugins/simple-preview/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-preview/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-preview/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-preview/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-preview/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-preview/reviews/)

## Tags

 * [preview](https://wordpress.org/support/topic-tag/preview/)

 * 1 reply
 * 2 participants
 * Last reply from: [Nagmay](https://wordpress.org/support/users/gabrielmcgovern/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/generate-links-programatically/#post-10862184)
 * Status: not resolved