Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: New Group creation fields


Boone Gorges
Keymaster

@boonebgorges

You shouldn’t need more functions, just conditional checks inside of the plugins. Something like:

`function bbg_save_extra_group_details() {
global $bp;

if ( ‘yes’ == groups_get_groupmeta( $bp->groups->current_group->id, ‘is_this_group_a’ ) ) {
// do some group A stuff
} else {
// do some group B stuff
}
}`

You don’t have to use groupmeta to distinguish between the groups, but you will definitely have to have some way of distinguishing between them.

Skip to toolbar