Skip to:
Content

BuddyPress.org

Opened 15 years ago

Closed 15 years ago

#877 closed defect (bug) (worksforme)

Can't find a bp action when a new group is created

Reported by: burtadsit's profile burtadsit Owned by:
Milestone: 1.1 Priority: minor
Severity: Version:
Component: Keywords:
Cc:

Description

This is in trunk bp. The closest I can find is the group object save method's actions of 'groups_group_before_save' and 'groups_group_after_save' but if I use the 'before' action it doesn't have a group id. If I use the 'after' action it has a group id but that doesn't tell me if it's a new group.

The fn groups_create_group() seems to be missing a do_action() call on new group creation.

Change History (3)

#1 @burtadsit
15 years ago

I also can't seem to find a groups_record_group() function that records the fact that a new group was created in sitewide activity. I guess I was looking for a fn similar to bp_blogs_record_blog().

#2 @apeatling
15 years ago

  • Milestone changed from 1.0.4 to 1.1

Milestone 1.0.4 deleted

#3 @apeatling
15 years ago

  • Resolution set to worksforme
  • Status changed from new to closed

do_action( 'groups_create_group_step_save_' . $bp->groups->current_create_step );
do_action( 'groups_create_group_step_complete' );
do_action( 'groups_group_create_complete', $bp->groups->new_group_id );

Note: See TracTickets for help on using tickets.