Created
January 28, 2013 14:30
-
-
Save tmort/4655945 to your computer and use it in GitHub Desktop.
Modify WP auto-logout duration
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 | |
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' ); | |
function keep_me_logged_in_for_1_year( $expirein ) { | |
return 31556926; // 1 year in seconds | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment