fbpx

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
}

Allen Robinson

Director of Application Development
Allen has been responsible for overseeing client website development, implementation, and maintenance at Foxtrot Media for over 10 years. A Computer Science graduate from the University of Wisconsin- Madison, Robinson is a software development and content management system specialist, fluent in CSS, PHP, MySQL, HTML, and JavaScript.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Allen Robinson

Director of Application Development
Allen has been responsible for overseeing client website development, implementation, and maintenance at Foxtrot Media for over 10 years. A Computer Science graduate from the University of Wisconsin- Madison, Robinson is a software development and content management system specialist, fluent in CSS, PHP, MySQL, HTML, and JavaScript.

Post Details

Categories:

Software/Plugins:

Languages: