bp_get_group_create_nav_item()

Get the Create a Group nav item.

Description

Return

(string)

Source

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

4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
function bp_get_group_create_nav_item() {
    // Get the create a group button.
    $create_group_button = bp_get_group_create_button();
 
    // Make sure the button is available.
    if ( empty( $create_group_button ) ) {
        return;
    }
 
    $output = '<li id="group-create-nav">' . $create_group_button . '</li>';
 
    /**
     * Filters the Create a Group nav item.
     *
     * @since BuddyPress 2.2.0
     *
     * @param string $output HTML output for nav item.
     */
    return apply_filters( 'bp_get_group_create_nav_item', $output );
}

Changelog

Changelog
Version Description
BuddyPress 2.2.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.