-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Just return number from get_users_browsing_page #20
Comments
Maybe try |
Thank you very much for your quick response! I went with: Only now it's not updating real-time, right? Is there any way to fix that? |
Nope. It is totally different. This just basically counts the user at the point in time. If you want real time, you need to write your own AJAX calls to an endpoint that calls that line. |
Well, the real-time update does happen but it switches the output back to html..
|
Just replace this line? https://github.com/lesterchan/wp-useronline/blob/master/core.php#L172 |
Awesome, that works. But I'd rather not have custom code in the plugin of course. Do you think you can include this in the plugin? Something like:
Or maybe a global setting to bypass templates and just return numbers? |
Hi,
I don't see any way to just return a number from get_users_browsing_page, so I brute forced myself a way to do it. Probably all wrong.
Is this something you could maybe include in the plugin?
The text was updated successfully, but these errors were encountered: