I have my site in WordPress, in which whenever I published new post there is a option for user comments. I have seen that there are so many comments on my each post now I want to reply for some comments for this I have to check which Commenter is online in real time so I can reply him first.
I have selected an option for comments only for registered users by using default setting in WordPress.
one important thing is that I am using WP-UserOnline plugin to display list of registered users that are online in real time.
I have searched many terms for this, but on web there no no such option to do that.
I tried with this code which i put into my class-walker-comment.php file
<?php
if ( is_user_logged_in() ) {
echo 'Online';
} else {
echo 'Offline';
}
?>
But this is_user_logged_in()
fuction is checking only current user.
but I want to display the status of commenter and status should be visible for everyone like the image given below.
please check the image given below.