Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: Modify the activity loop

@henrywright

Moderator

/wp-content/plugin/buddypress/bp-activity/activity-template.php is a core file and you are indeed right to think that any changes you make will be overwritten when you upgrade the plugin.

As I mentioned earlier, you should modify your activity template (sorry for not being clearer). The link I provided (to the BuddyPress Template Hierarchy) explains how you can create your own templates.

To explain what I meant about bp_activity_add(), you’d write your own function which contains a call to bp_activity_add(). bp_activity_add() will add an item to the activity stream for you. Hooks are a feature of WordPress, you can read more about them here. You’d hook your custom function to a particular action which will result in bp_activity_add() executing at exactly the time you need it to.

Hooks take a bit of getting your head around at first, but once you master them you’ll see how powerful they can be.

PS – When I crack it, is there any way I can contribute to the codex so other newbies like me have access to the stuff? How?

Sure you can! See the Participate and Contribute article for info on how you can help improve BP documentation.

Hope all this info helps! Give me a shout if you need any further help

Skip to toolbar