Title: Get link progmatically
Last modified: August 30, 2016

---

# Get link progmatically

 *  [Moorst](https://wordpress.org/support/users/moorst/)
 * (@moorst)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/get-link-progmatically/)
 * I was wondering whether there’s any way to get the preview link and display this
   on the front end site?
 * Basically, I have products that can be managed by front end users on a marketing
   site, so what I want to do is automatically create this preview link when the
   product is in a pending state, and print this link on the front end of the site
   so they can preview their product before it goes live.
 * Would this be possible? I’d also be interested in any support you could provide
   on automatically generating the link when the front end user create the product
   in a pending state. at the moment, you need to check the box when saving in the
   admin area.
 * I appreciate any help.
 * Thanks
 * [https://wordpress.org/plugins/public-post-preview/](https://wordpress.org/plugins/public-post-preview/)

The topic ‘Get link progmatically’ is closed to new replies.

 * ![](https://ps.w.org/public-post-preview/assets/icon-256x256.jpg?rev=3190626)
 * [Public Post Preview](https://wordpress.org/plugins/public-post-preview/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/public-post-preview/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/public-post-preview/)
 * [Active Topics](https://wordpress.org/support/plugin/public-post-preview/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/public-post-preview/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/public-post-preview/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Moorst](https://wordpress.org/support/users/moorst/)
 * Last activity: [10 years, 10 months ago](https://wordpress.org/support/topic/get-link-progmatically/)
 * Status: not a support question