Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Groups: remove steps about creating new group

  • @robertosalemi

    Participant

    Hi,
    I would remove two steps present during creating the new group:
    – Options: Public, Private, etc..
    – Invite: Only Administrator, etc…
    – Invite: the last step.

    So I inserted in functions.php of my theme:

    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 );

    Visually, I don’t see the steps that I indicated up, but really the steps there all still.
    Step Creation Groups

    What am I doing wrong?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • @danbp

    Participant

    You’re using old code (bp 1.8).

    See function groups_action_create_group() in bp-group/bp-groups-action.php

    @robertosalemi

    Participant

    Thanks, I will try.

    @robertosalemi

    Participant

    Hi @danbp,
    I saw function groups_action_create_group(), but I don’t understand how can I hide steps about how create group in my functions.php

    Can you help me?

    Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘BuddyPress Groups: remove steps about creating new group’ is closed to new replies.
Skip to toolbar