What is the easiest way to query all groups’ last activity?
I’m thinking of writing a loop that iterates through all the groups and checks the last activity and then checks if the time of that activity is the same as or earlier than the ‘last_activity’ meta for that group. This is because not all plugins that add activities trigger
groups_update_groupmeta($id,'last_activity', bp_core_current_time());and so my groups by last activity is incorrect.
I’ve tried Googling this and found forum posts with links “to the codex” that are actually 404s.
So, I am asking. How do I loop through the groups and can I then look at the last activity for that group to get the time/date?
Also, side question why does
groups_record_activity()not update that?
- You must be logged in to reply to this topic.