Tweaking WordPress

/**
 * Logged in for 1 year.
 */
add_filter( 'auth_cookie_expiration', function() {
    return YEAR_IN_SECONDS;
});