• Hello,

    Below is a conversation of my findings when a client was having issues trusting the expiration time (set to 5 days with us using the filter). E.g. he would generate a link on Thursday but it would expire on Saturday, 3 days later, not 5. My findings are summed up in my response:

    You’ll be glad to hear…I was wrong! I did find out something interesting just now: the Public Preview plugin generates the expiration time when you save the post (as a Draft), not when you enable the public preview checkbox.

    Next time you want to enable public preview (when you check the box), go ahead and also save your post (even if you haven’t made any changes) right after you enable it.

    What you’re probably doing is starting a post, saving it as a draft as you go along, maybe finishing edits, say, Monday. Then, say, Thursday, enabling public preview, sharing the link, and then closing out your window. The start time is from Monday, not Thursday because Monday was the last day you hit save. So it expires on Saturday instead of Tuesday.

    This is definitely the plugin, so I’m going to make an effort to contact the developer and see what we can do about that because I think the start time should be generated when you check the checkbox, regardless if you save at that point or not, because you may not have made any changes.

    I’m sharing this because, as I mentioned above, having the time generate when you save the post doesn’t always ensure that when you generate the link that the time will be accurate. Our client here was enabling the link but not hitting save (they had finished the post earlier that week) and so his time was off.

    Let me know if you need help, I could spin up a patch!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Dominik Schilling

    (@ocean90)

    WordPress Core Developer

    Hello @aubreypwd, feel free to submit a PR to https://github.com/ocean90/public-post-preview. Happy to take a look at how you’d implement it.

    We did not realize that preview links were expiring until clients kept telling us. This should be more obvious – like perhaps by putting the expiry date and time somewhere near the checkbox and generated link.

    It would be nice to have an option for links that don’t expire or a way to set a longer period before expiry, because 5 days is not enough time for busy people to get to the link before it stops working.

    I would not have expected the clock to start ticking until i checked the box to enable a preview link, and i’d expect the timer to get reset if i unchecked and rechecked it.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Start time should generate when you enable preview link’ is closed to new replies.