bp_get_new_group_status()

Get the newly created group privacy.

Description

Return

(mixed|void)

Source

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

5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
function bp_get_new_group_status() {
    $bp     = buddypress();
    $status = isset( $bp->groups->current_group->status )
        ? $bp->groups->current_group->status
        : 'public';
 
    /**
     * Filters the new group status.
     *
     * @since BuddyPress 1.1.0
     *
     * @param string $status Status for the new group.
     */
    return apply_filters( 'bp_get_new_group_status', $status );
}

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.