bp_get_current_group_admin_tab
Filters the current group admin tab slug.
Description
Parameters (1)
- 0. $tab (string)
- Current group admin tab slug.
Usage
- To run the hook, copy the example below.
- $tab = apply_filters( 'bp_get_current_group_admin_tab', $tab );
- if ( !empty( $tab ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the bp_get_current_group_admin_tab callback
- function filter_bp_get_current_group_admin_tab( $tab ) {
- // make filter magic happen here...
- return $tab;
- };
- // add the filter
- add_filter( 'bp_get_current_group_admin_tab', 'filter_bp_get_current_group_admin_tab', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'bp_get_current_group_admin_tab', 'filter_bp_get_current_group_admin_tab', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /bp-groups/bp-groups-template.php
- return apply_filters( 'bp_get_current_group_admin_tab', $tab );