Allow your clients to review a draft without needing to login.
Have you ever built a new page for a client, but you can’t publish it until your client has had a chance to approve it? Additionally, they may need to send the drafted page to other associates to review as well. But in WordPress that means anyone that wants to review the page will have to log into the site first.
Luckily we can avoid the hassle and need to create unnecessary user accounts by making the draft previewable with the Public Post Preview plugin!
Public Post Preview adds an option to unpublished posts and pages to make them viewable without signing in:
Just click “Enable public preview” and share the link with your clients!
Extending the public link’s life
Unfortunately, out of the box, the public link is only available for 48 hours before it expires. That seems like a very optimistic turn around time for a client to approve something 😉 Luckily there’s a simple hook you can add to your functions.php file to extend this period:
add_filter( 'ppp_nonce_life', 'my_nonce_life' ); function my_nonce_life() { return 60 * 60 * 24 * 365; // 365 days }