I have a couple of members having different custom roles in my site.
For Example, when anyone registers, they register under a group and the group name is append with their display_name in wp_users table.

[i.e. GROUP-A John Smith, GROUP-B Dave Kit etc.].
Also John Smith and Dave Kit may have different role under their group such as Agent or Supervisor.
Now I want to show the count and list the active members by their ROLE and also by their GROUP (just like this table) Result

Also I want that, users inactive more that 5 mins (300 sec.) are not listed in the output. Please help me out to get this done. Thanks in advance.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.