Advertisement
salmancreation

auth_cookie_expiration

Oct 8th, 2018
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. function keep_me_logged_in_for_1_year( $expirein ) {
  2.    return 31556926; // 1 year in seconds
  3. }
  4. add_filter( 'auth_cookie_expiration', 'keep_me_logged_in_for_1_year' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement