bp_forum_topic_has_tags

Does the current topic have any tags?.

Description

bp_forum_topic_has_tags(); 

Usage

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

Defined (1)

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

/bp-forums/bp-forums-template.php  
  1. function bp_forum_topic_has_tags() { 
  2. global $topic_template; 
  3.  
  4. $has_tags = false; 
  5.  
  6. if ( !empty( $topic_template->topic_tags ) ) 
  7. $has_tags = true; 
  8.  
  9. /** 
  10. * Filters whether or not a forum topic has any tags. 
  11. * @since 1.5.0 
  12. * @param bool $has_tags Whether or not there are any tags. 
  13. */ 
  14. return apply_filters( 'bp_forum_topic_has_tags', $has_tags );