bp_get_new_group_name()

Get the newly created group name after the creation process.

Description

Return

(mixed|void)

Source

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

5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793
function bp_get_new_group_name() {
    $bp   = buddypress();
    $name = isset( $bp->groups->current_group->name )
        ? $bp->groups->current_group->name
        : '';
 
    /**
     * Filters the new group name.
     *
     * @since BuddyPress 1.1.0
     *
     * @param string $name Name of the new group.
     */
    return apply_filters( 'bp_get_new_group_name', $name );
}

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.