Last active
May 23, 2016 08:38
-
-
Save JeppeSigaard/a3e68e1eecaf0ba6c86f06f330b11084 to your computer and use it in GitHub Desktop.
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 | |
/* | |
Plugin name: Godkend login i 99 dage | |
Description: Forlænger perioden for et login til 99 dage | |
Author: Torben Meldgaard | |
Author URI: http://seatrouting.com | |
*/ | |
add_filter('auth_cookie_expiration', 'my_expiration_filter', 99, 3); | |
function my_expiration_filter($seconds, $user_id, $remember){ | |
$expiration = 99*24*60*60; // 99 dage eller mere? | |
return $expiration; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment