bp_group_admin_tabs( object|bool $group = false )
HTML admin subnav items for group pages.
Description
Parameters
- $group
-
(Optional) Group object. Default: current group in the loop.
Default value: false
Source
File: bp-groups/bp-groups-template.php
3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 | function bp_group_admin_tabs( $group = false ) { global $groups_template ; if ( empty ( $group ) ) { $group = ( $groups_template ->group ) ? $groups_template ->group : groups_get_current_group(); } $css_id = 'manage-members' ; if ( 'private' == $group ->status ) { $css_id = 'membership-requests' ; } add_filter( "bp_get_options_nav_{$css_id}" , 'bp_group_admin_tabs_backcompat' , 10, 3 ); bp_get_options_nav( $group ->slug . '_manage' ); remove_filter( "bp_get_options_nav_{$css_id}" , 'bp_group_admin_tabs_backcompat' , 10 ); } |
Changelog
Version | Description |
---|---|
BuddyPress 1.0.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.