bp_get_group_create_nav_item()
Get the Create a Group nav item.
Description
Return
(string)
Source
File: bp-groups/bp-groups-template.php
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
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.