Created
October 9, 2014 16:34
-
-
Save JiveDig/361a30e2c5a79ccd113f to your computer and use it in GitHub Desktop.
// Stay logged in
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 | |
// Stay logged in | |
add_filter( 'auth_cookie_expiration', 'mwm_keep_me_logged_in_for_4_weeks' ); | |
function mwm_keep_me_logged_in_for_4_weeks( $expirein ) { | |
return 2419200; // 4 weeks in seconds | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment