How to: Make sure Buddypress loads first

Often, it doesn’t matter whether your Buddypress plugin loads before or after Buddypress. However, if you are using groups API, or extending other Buddypress plugins, your class extensions require that Buddypress be loaded beforehand. Functions hooked into actions that occur before Buddypress loads that use Buddypress functions will cause problems as well if the load [...]

Continue Reading...

How to: create groups in Buddypress with PHP

Ever want to make a buddypress function that creates a group? Here’s how:
You can do this without writing any SQL. Buddypress uses a class called BP_Groups_Group to handle its group creation. BP_Groups_Group is defined in /groups/bp-groups-classes if you want to see it. I highly recommend taking a look at this, as you will [...]

Continue Reading...