add_topic_tags

The BuddyPress add topic tags function.

Description

add_topic_tags( $topic_id, $tags ); 

Parameters (2)

0. $topic_id
The topic id.
1. $tags
The tags.

Usage

  1. if ( !function_exists( 'add_topic_tags' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The topic id. 
  5. $topic_id = null; 
  6.  
  7. // The tags. 
  8. $tags = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = add_topic_tags($topic_id, $tags); 
  12.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function add_topic_tags( $topic_id, $tags ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'bb_add_topic_tags'); 
  3. return bb_add_topic_tags( $topic_id, $tags );