I think a lot of people are confused In hooks, actions, filters!
-
I have around 2 months experience in BP and I have noticed a lot of people getting confused on this subject and I will try to briefly simplify it. First off I am not an “expert” in BuddyPress. Secondly if you want to hook into buddypress then look at within the templates particularly the do_action ones. Here is a simple example in this matter, you create a plugin with the appropriate header/comments, then create a function within to get the job done, then you hook it by calling the appropriate part of buddypress. In my example I will use bp_head. Create a function with the requirements you need then hook it too buddypress by adding:
add_action (‘bp_head’, ‘my_functions_name’);
I hope this helps a few people but like I stated I am no expert I just learn somewhat quick and I enjoy sharing what I learn from others and from experimentation.I love buddypress as well so peace!
- The topic ‘I think a lot of people are confused In hooks, actions, filters!’ is closed to new replies.