yeahhub

Stay Logged in WordPress

Jun 16th, 2018
94
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /**
  2. * Stay Logged in (Powered by Yeahhub.com)
  3. */
  4. add_filter( 'auth_cookie_expiration', 'stay_longer' );
  5. function stay_longer( $expire ) {
  6.   return 17280000; // 200 days in seconds
  7. }
RAW Paste Data