bp_users_admin_profile_types_listing_add_users_tab()
Added Navigation tab on top of the page BuddyBoss > Group Types
Description
Source
File: bp-xprofile/bp-xprofile-admin.php
function bp_users_admin_profile_types_listing_add_users_tab() { global $pagenow ,$post; // Check profile type enabled. $is_member_type_enabled = bp_member_type_enable_disable(); if ( true === $is_member_type_enabled ) { if ( ( isset( $GLOBALS["wp_list_table"]->screen->post_type ) && $GLOBALS["wp_list_table"]->screen->post_type == 'bp-member-type' && $pagenow == 'edit.php' ) || ( isset( $post->post_type ) && $post->post_type == 'bp-member-type' && $pagenow == 'edit.php' ) || ( isset( $post->post_type ) && $post->post_type == 'bp-member-type' && $pagenow == 'post-new.php' ) || ( isset( $post->post_type ) && $post->post_type == 'bp-member-type' && $pagenow == 'post.php' ) ) { ?> <div class="wrap"> <?php $users_tab = count( bp_core_get_users_admin_tabs() ); if ( $users_tab > 1 ) { ?> <h2 class="nav-tab-wrapper"><?php bp_core_admin_users_tabs( __( 'Profile Types', 'buddyboss' ) ); ?></h2><?php } ?> </div> <?php } } }
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.