bb_admin_title

The BuddyPress bb admin title function.

Description

bb_admin_title(); 

Usage

  1. if ( !function_exists( 'bb_admin_title' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bb_admin_title(); 
  7.  

Defined (1)

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

/bp-forums/bbpress/bb-admin/includes/functions.bb-admin.php  
  1. function bb_admin_title() 
  2. global $bb_current_menu, $bb_current_submenu; 
  3.  
  4. $title = $bb_current_menu[0] . ' ‹ ' . bb_get_option( 'name' ) . ' — ' . __( 'bbPress' ); 
  5.  
  6. if ( $bb_current_submenu && $bb_current_submenu[0] !== $bb_current_menu[0] ) { 
  7. $title = $bb_current_submenu[0] . ' ‹ ' . $title; 
  8.  
  9. echo esc_html( $title );