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...

Buddypress API

Function Name:
groups_update_groupmeta ($id, $meta_key, $meta_value)
Parameters:
$id: a group id
$meta_key: name of the metadatum you want to set
$meta_value: the value you want to give it
Function Name:
xprofile_set_field_data($field_key, $id, $field_val)
Sets the value of an extended profile field
Parameters:
$field_key: Name of the field you want to set
$id: a user id
$field_val: Value of the field to be set

Continue Reading...