add_profile_tab

The BuddyPress add profile tab function.

Description

add_profile_tab( $tab_title, $users_cap, $others_cap, $file, (bool) $arg = false ); 

Parameters (5)

0. $tab_title
The tab title.
1. $users_cap
The users cap.
2. $others_cap
The others cap.
3. $file
The file.
4. $arg — Optional. (bool) => false
The arg.

Usage

  1. if ( !function_exists( 'add_profile_tab' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The tab title. 
  5. $tab_title = null; 
  6.  
  7. // The users cap. 
  8. $users_cap = null; 
  9.  
  10. // The others cap. 
  11. $others_cap = null; 
  12.  
  13. // The file. 
  14. $file = null; 
  15.  
  16. // The arg. 
  17. $arg = false; 
  18.  
  19. // NOTICE! Understand what this does before running. 
  20. $result = add_profile_tab($tab_title, $users_cap, $others_cap, $file, $arg); 
  21.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function add_profile_tab( $tab_title, $users_cap, $others_cap, $file, $arg = false ) 
  2. bb_log_deprecated( 'function', __FUNCTION__, 'bb_add_profile_tab' ); 
  3. return bb_add_profile_tab( $tab_title, $users_cap, $others_cap, $file, $arg );