Hi Everybody.
I’m PHP Developer and I wonder If You can help me. I’m looking for good documentation of BuddyPress Action and Filter Hooks. I want to develop a new component and add some features to group component. Does somebody can help me find some real good and current documentation?
Hi Marcin,
Thanks for asking the question.
The problem is Bp does not have any good documentation at the moment. There are several reasons. On being, it is still in heavy development phase. The best way to look for a hook(action/filter) is to look inside the sourcecode.
Here are some basic things to ease the search. Most of the filters for a component are present in buddypress/thecomponent/bp-component-name-filters.php. Though, the above is not always true.
One way I suggest is, first define the scope of your component, what you want to do with it and what bp functionality it needs to know, which components it depends on. After that, you can look for that specific bp-functionality.
That is the only way at the moment. But please make sure to familiarise with bp codex for basic understanding. A point to note, if you have prior experience in developing wordpress, that will help.
Thanks for your reply.
Since 2 days I’m analyzing sourcecode and table structure.
The component that I would like is complicated but functionality is similar to group.
In this component you define how much people can join to the group. When somebody join to the group every member of the group should be notified in the top notification area when member is logged in and for mail when member of the group is logged out.
You can join to the group only by sending request to the author of the group. When author of the group allow for your membership everybody in group are notified about new member and you are notified on mail (logged out), notification area (logged in).
Second the group have the wall. Every logged in can write on the wall. When somebody write on the group wall then every members are notified about this fact.
I know this is very special kind of group. Also in my site there will by millions of group. Is BuddyPress can handle this?
Is that component exists?
Thank You very much for bp-component-name-filters.php trick 🙂