bp_get_new_group_enable_forum()

Check if the newly created group has forums enabled.

Description

Return

(int)

Source

File: bp-groups/bp-groups-template.php

5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
function bp_get_new_group_enable_forum() {
    $bp    = buddypress();
    $forum = isset( $bp->groups->current_group->enable_forum )
        ? $bp->groups->current_group->enable_forum
        : false;
 
    /**
     * Filters whether or not to enable forums for the new group.
     *
     * @since BuddyPress 1.1.0
     *
     * @param int $forum Whether or not to enable forums.
     */
    return (int) apply_filters( 'bp_get_new_group_enable_forum', $forum );
}

Changelog

Changelog
Version Description
BuddyPress 1.1.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.