function stay_logged_time( $expire ){ return 31556926; // 1 year in seconds } add_filter( 'auth_cookie_expiration', 'stay_logged_time' );