I was searching a lot on this. Found:
Post 1. global $qa_login_userid; -> not working
Post 2. global $qa_login_userid; -> not working
Post 3. $qa_cached_logged_in_user -> not working
Is there no way to detect if a user is logged in (custom theme)?
The most correct way is to call qa_get_logged_in_userid(...) and check if the response is null or not.
Welcome to the Q&A site for Question2Answer.
If you have a question about Q2A, please ask here, in English.
To report a bug, please create a new issue on Github or ask a question here with the bug tag.
If you just want to try Q2A, please use the demo site.
April 20, 2021: Q2A 1.8.6 released!