Skip to content

Instantly share code, notes, and snippets.

@JeppeSigaard
Last active May 23, 2016 08:38
Show Gist options
  • Save JeppeSigaard/a3e68e1eecaf0ba6c86f06f330b11084 to your computer and use it in GitHub Desktop.
Save JeppeSigaard/a3e68e1eecaf0ba6c86f06f330b11084 to your computer and use it in GitHub Desktop.
<?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