// https://digwp.com/2023/01/stay-logged-in-to-wordpress/ function shapeSpace_stay_logged_in($expires) { return 3153600000; // 100 years } add_filter('auth_cookie_expiration', 'shapeSpace_stay_logged_in');