Buddypress actions and group activity stream
I’m trying to put the activity stream of one of the groups on my site onto the homepage. I’m trying to adapt the code from activity.php in groups, single in the BuddyPress theme. The problem I’m having is that I don’t understand how the do_actions work to call functions. My understanding is that an action has to be declared using add_action that links it to a particular function. However, when I search all of the BuddyPress files for a name of an action, it only ever shows up in the theme files with do_action.
I’m trying to find out how the actions link to functions so I can work out how to pass the functions the group ID so that they only show that group.
Can anyone explain this for me because I am really stuck. I’ve done very very little PHP before but quite a lot of programming in other languages.
You must be logged in to reply to this topic.