auth_cookie_expiration() only works if you use the “remember me” function
Question: I was asked if I could modify a WordPress website so that logged in users would stay logged in for 1 day. This regardless of whether they close the browser or restart their device. For security, they do have to log in again after a day. To do this, I added the PHP code below to functions.php: function custom_login_session($expiration) { $expiration = 86400 //