Support » Plugin: Public Post Preview » Link expires despite adding code to extend

  • I have this code in my child theme functions.php. The new preview links I create continue to expire after one day.

    add_filter( 'ppp_nonce_life', 'my_nonce_life' );
    function my_nonce_life() {
        return 60 * 60 * 24 * 7;
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @squeebo, I am facing the same issue, despite the code:

    function custom_public_preview_life() {
        return 60 * 60 * 24 * 365 * 10; // 10 years
    add_filter( 'ppp_nonce_life', 'custom_public_preview_life' );

    Did you find any solution?
    Thanks in advance.

    It was because of Plugin Organizer. Turns out that disabling some plugins for users in the admin dashboard also screws up plugins’ functionality on the front end in unexpected ways.

    I’m currently dealing with the same problem but I am not using Plugin Organizer or anything like that to control user access to plugins.



    I’m having the same problem and not using Plugin Organizer or anything similar.



    I’ve tried extending the expiration time by adding that code to my site with the Code Snippets plugin, and by using the seemingly outdated Public Post Preview Configurator plugin. In both cases, a just-generated and successfully tested PPP link immediately expires as soon as I’ve activated either extension attempt, and then immediately functions properly again as soon as I deactivate the plugin being tested.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.