Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Groups: how-to remove steps when creating new group

  • @bestiabugblatta

    Participant

    Hi,

    I was trying to remove some steps during group creation. Googleing I’ve found this function (thanks to @robertosalemi)

    function remove_group_creation_steps() {
    	global $bp;
    	unset( $bp->groups->group_creation_steps['group-settings'] );	
    	unset( $bp->groups->group_creation_steps['group-avatar'] );	
    	unset( $bp->groups->group_creation_steps['group-invites'] );	
    }
    add_action( 'bp_before_create_group_content_template', 'remove_group_creation_steps', 9999 );

    but it does not work, as it is referred to the old code of BP (1.8) and I’m using the 2.1.1 version, as explained by @danbp who suggested to look at function groups_action_create_group() in bp-group/bp-groups-action.php.

    But I have not found any code to replace the old one.

    Is there somebody who solved this problem? Please, help as I’m in deep trouble!

    Thanks
    Bruno

  • The topic ‘BuddyPress Groups: how-to remove steps when creating new group’ is closed to new replies.
Skip to toolbar