bb_get_admin_tab_link

The WordPress Core bb get admin tab link function.

Description

bb_get_admin_tab_link( $tab ); 

Parameters (1)

0. $tab
The tab.

Usage

  1. if ( !function_exists( 'bb_get_admin_tab_link' ) ) { 
  2. require_once '/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php'; 
  3.  
  4. // The tab. 
  5. $tab = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_get_admin_tab_link($tab); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php  
  1. function bb_get_admin_tab_link( $tab ) 
  2. if ( is_array( $tab ) ) { 
  3. $tab = $tab[2]; 
  4. if ( strpos( $tab, '.php' ) !== false ) { 
  5. return $tab; 
  6. } else { 
  7. return 'admin-base.php?plugin=' . $tab;