Skip to:
Content
Pages
Categories
Search
Top
Bottom

BuddyPress Groups: remove steps about creating new group


  • robertosalemi
    Participant

    @robertosalemi

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