Sunday, October 16, 2016

Wordpress- How to Stay Logged in for Longer Periods

// Stay logged in for longer periods
add_filter( 'auth_cookie_expiration', 'keep_me_logged_in' );
function keep_me_logged_in( $expirein ) {
    return 31556926; // 1 year in seconds
}