Created
February 6, 2019 15:22
-
-
Save WordBits/83de608b61eaa0aa7bf4cd1bf641bc58 to your computer and use it in GitHub Desktop.
Extend the life of the Public Post Preview plugin to 10 days.
This file contains hidden or 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-the-public-post-preview-plugin/ | |
// Created by: Lauren Pittenger | |
?> | |
<?php | |
/** | |
* Public post preview pugin: extend expiration to 10 days | |
*/ | |
add_filter( 'ppp_nonce_life', 'fans4thecure_nonce_life' ); | |
function fans4thecure_nonce_life() { | |
return 60 * 60 * 24 * 10; // 10 days | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment