Last active
May 17, 2022 14:49
-
-
Save stefanmm/cd237d871f6d0364feb9d8e65e530a42 to your computer and use it in GitHub Desktop.
Edit WP cookie expiration
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
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_2_weeks', 99, 1 ); | |
function keep_me_logged_in_for_2_weeks( $expire ) { | |
return 1209600; // 2 weeks in seconds | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment