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
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
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.