bp_get_group_current_admin_tab

Returns the current group admin tab slug.

Description

(string) bp_get_group_current_admin_tab(); 

Returns (string)

$tab The current tab's slug.


Usage

  1. if ( !function_exists( 'bp_get_group_current_admin_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-groups/bp-groups-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_group_current_admin_tab(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-groups/bp-groups-template.php  
  1. function bp_get_group_current_admin_tab() { 
  2. if ( bp_is_groups_component() && bp_is_current_action( 'admin' ) ) { 
  3. $tab = bp_action_variable( 0 ); 
  4. } else { 
  5. $tab = ''; 
  6.  
  7. /** 
  8. * Filters the current group admin tab slug. 
  9. * @since 1.6.0 
  10. * @param string $tab Current group admin tab slug. 
  11. */