bp_core_get_tools_settings_admin_tabs( string $active_tab = '' )

Get the data for the settings tabs in the admin area.

Description

Parameters

$active_tab

(Optional) Name of the tab that is active. Optional.

Default value: ''

Return

(string)

Source

File: bp-core/admin/bp-core-admin-functions.php

2822
2823
2824
2825
2826
2827
2828
2829
2830
2831
2832
2833
2834
2835
2836
2837
2838
2839
2840
2841
2842
function bp_core_get_tools_settings_admin_tabs( $active_tab = '' ) {
 
    // Tabs for the BuddyBoss > Tools
    $tabs = array(
        '0' => array(
            'href' => get_admin_url( '', add_query_arg( array( 'page' => 'bp-tools', 'tab' => 'bp-tools'  ), 'admin.php' ) ),
            'name' => __( 'Default Data', 'buddyboss' ),
            'slug' => 'bp-tools'
        )
    );
 
 
    /**
     * 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_tools_settings_admin_tabs', $tabs );
}

Changelog

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.