bp_core_get_groups_admin_tabs( string $active_tab = '' )
Register tabs for the BuddyBoss > Groups screens.
Description
Parameters
- $active_tab
-
(Optional)
Default value: ''
Return
(array)
Source
File: bp-core/admin/bp-core-admin-functions.php
2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 | function bp_core_get_groups_admin_tabs( $active_tab = '' ) { $tabs = array (); $tabs [] = array ( 'href' => bp_get_admin_url( add_query_arg( array ( 'page' => 'bp-groups' ), 'admin.php' ) ), 'name' => __( 'All Groups' , 'buddyboss' ), 'class' => 'bp-all-groups' , ); if ( true === bp_disable_group_type_creation() ) { if ( is_network_admin() && bp_is_network_activated() ) { $group_url = get_admin_url( bp_get_root_blog_id(), 'edit.php?post_type=bp-group-type' ); } else { $group_url = bp_get_admin_url( add_query_arg( array ( 'post_type' => 'bp-group-type' ), 'edit.php' ) ); } $tabs [] = array ( 'href' => $group_url , 'name' => __( 'Group Types' , 'buddyboss' ), 'class' => 'bp-group-types' , ); } $query [ 'autofocus[section]' ] = 'bp_nouveau_group_primary_nav' ; $section_link = add_query_arg( $query , admin_url( 'customize.php' ) ); $tabs [] = array ( 'href' => esc_url( $section_link ), 'name' => __( 'Group Navigation' , 'buddyboss' ), 'class' => 'bp-group-customizer' , ); /** * Filters the tab data used in our wp-admin screens. * * @since BuddyBoss 1.0.0 * * @param array $tabs Tab data. */ return apply_filters( 'bp_core_get_groups_admin_tabs' , $tabs ); } |
Changelog
Version | Description |
---|---|
BuddyBoss 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.