Home › Forums › General Issues › Show online offline status automatically › Reply To: Show online offline status automatically
I thought you were getting fields from a user. See this doc https://www.advancedcustomfields.com/resources/how-to-get-values-from-a-user/
Transients would be a better way to go. I would set a different transient for each user with a small expiration time. If the transient has expired then the user in no longer logged in. Updated it each time the user interacts with a page or build a JavaScript/AJAX script that updates the transient as long at user has the site open.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.