How to access the $activity Object before its saved to the Database
Whenever a user performs certain default actions, such as reply in a group forum, there is an entry in their activity stream showing that they had replied to so and so forum at so and so time. So what am looking for is this- when a user performs the action before the event is recorded in the activity stream, I would like to access the $activity object. Can someone please tell me where the save functionality is implemented for a new addition to the activity stream. For example, I know that in bp-activity-functions.php file in method bp_activity_add() function it has a line $save = $activity->save(); But I noticed that the code does not flow to this function when saving default actions. I also did not find any hook I can use to access $activity object before it is saved. Please help. Thank You
- You must be logged in to reply to this topic.