bb_get_total_topic_tags

The BuddyPress bb get total topic tags function.

Description

bb_get_total_topic_tags(); 

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-statistics.php  
  1. function bb_get_total_topic_tags() 
  2. global $bb_total_topic_tags; 
  3. if ( isset($bb_total_topic_tags) ) { 
  4. return $bb_total_topic_tags; 
  5. global $wp_taxonomy_object; 
  6. $bb_total_topic_tags = $wp_taxonomy_object->count_terms( 'bb_topic_tag' ); 
  7. return $bb_total_topic_tags;