Created
April 1, 2020 19:20
-
-
Save WordBits/c0c2d1e2f2ac4606fc14aba75c0c55ae to your computer and use it in GitHub Desktop.
Maybe this will work?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Download this snippet as a plugin and more at: https://wordbits.io/snippet/extend-public-post-preview/ | |
// Created by: Liam Dempsey | |
?> | |
<?php | |
add_filter( 'ppp_nonce_life', 'my_nonce_life' ); | |
function my_nonce_life() { | |
return 60 * 60 * 24 * 5; // 5 days | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment