We’re very exited to introduce you a new Protect Pages & Posts feature, Private Link Short Code from version 1.0.15. How cool is it?
Display private links in the post content
First of all, we need to grab the short code’s template in the plugin settings. Under the General tab, in PRIVATE ACCESS LINKS section, you should see the Shortcode text box. After changing the attribute’s values by following this post, you can use in the post content to generate the private link belonged to a protected page or post.
Generating private links in the PHP snippet
Our short code is also working well in the PHP snippet.
In the above snippet, we protected the page https://example.com/thank-you/ and we want to create the private link in line 8.
It’s pretty easy right. We hope this feature will be helpful for you.