Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing Discussions Tab


  • Bahawolf
    Participant

    @bahawolf

    Hello!

    Is there a way to remove the Discussions tab, and still have the forum created & associated with the group? Essentially I’d like all groups that are created on the frontend to have a forum, and I do not want to trouble the user with additional options.

    I was able to disable the other options via this code in bp-custom.php…:

    function custom_group_creation_steps() {
    global $bp;
    unset($bp->groups->group_creation_steps);

    $temp = array(
    “0” => array(“name” => “Details”,”slug” =>”group-details” ),
    ‘1’ => array(“name” => “Settings”,”slug” =>”group-settings”)
    );

    foreach( (array) $temp as $position => $step )
    $bp->groups->group_creation_steps[$step[‘slug’]] = array( ‘name’ => $step[‘name’], ‘position’ => $position );
    }

    add_action( ‘bp_init’, ‘custom_group_creation_steps’ );

    However, the discussions step remains. If you know how to fix this, please advise!

  • You must be logged in to reply to this topic.
Skip to toolbar