My client has a site that was built by another developer. When on the CHECKOUT page, the pay shows the LOGIN and REGISTER forms, even when the user is already logged in. Logging in again does nothing and the system doesn't recognize the action.
I have searched a bunch but can’t find anything related to this issue or how to fix it. Any thoughts on what page I should be editing, or what code I'm looking for (and how to modify it)?
Thank you in advance!
if( !is_user_loggedin() ) :
. So you'll need to find where that login form is added and how and then wrap it in that conditional check. developer.wordpress.org/reference/functions/is_user_logged_in