Last active
December 22, 2021 09:34
-
-
Save DarkLotus/78e459954703c212b987eeec9f763bd3 to your computer and use it in GitHub Desktop.
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
// keep users logged in for longer in wordpress | |
function gw_users_logged_in_longer( $expirein ) { | |
// 1 month in seconds * 6 for 6 months | |
return 2628000 * 6; | |
} | |
add_filter( 'auth_cookie_expiration', 'gw_users_logged_in_longer' ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment