bp_users_admin_profile_search_listing_add_users_tab()
Added Navigation tab on top of the page BuddyBoss > Group Types
Description
Source
File: bp-core/profile-search/bps-start.php
function bp_users_admin_profile_search_listing_add_users_tab() {
global $pagenow ,$post;
// Check profile search enabled.
$is_profile_search_enabled = bp_disable_advanced_profile_search();
if ( false === $is_profile_search_enabled ) {
if ( ( isset( $post->post_type ) && $post->post_type == 'bp_ps_form' && $pagenow == 'edit.php' ) || ( isset( $post->post_type ) && $post->post_type == 'bp_ps_form' && $pagenow == 'post-new.php' ) || ( isset( $post->post_type ) && $post->post_type == 'bp_ps_form' && $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 Search', '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.