Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing a step from the group creation process

  • @multiminds

    Participant

    Hello I have used the following code to remove the step settings while creating a new group.

    function remove_group_creation_steps() {
    global $bp;
    unset( $bp->groups->group_creation_steps[‘group-settings’] );
    }
    add_action( ‘bp_before_create_group_content_template’, ‘remove_group_creation_steps’, 1 );

    I can see the step being removed in the breadcrumbs, but the first step still redirects the page to the settings page instead of the new step 2.

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • @multiminds

    Participant

    Anyone

    @lolotrgeek

    Participant

    I was having this same problem and after a long mostly fruitless search I finally found a solid/working answer. The way buddypress currently handles these tabs is quite unwieldy so removing each tab requires a different method…

    How to remove group settings tab:

    function bp_remove_group_step_settings($array) {
    	
    	$array = array(
    		'group-details'  => array(
    			'name'       => _x( 'Details', 'Group screen nav', 'buddypress' ),
    			'position'   => 0
    		)
    	);
    	
    	return $array;
    }
    add_filter ('groups_create_group_steps', 'bp_remove_group_step_settings', 10, 1);

    (reference)
    How to remove group avatar and cover photo tabs:
    1. go to Dashboard » BuddyPress » Settings
    2. untick Group Photo Uploads and Group Cover Image Uploads

    How to remove group invite tab:

    function bp_remove_group_step_invites() {
    
    	global $bp;
    	
    	unset( $bp->groups->group_creation_steps['group-invites'] );
    	
    }
    add_action( 'bp_init', 'bp_remove_group_step_invites', 9999 ); 

    How to remove forums tab:
    Disable forums for buddypress…still havent figured out a more practical answer…

    Hope this helps though!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing a step from the group creation process’ is closed to new replies.
Skip to toolbar