add_topic_tag

The BuddyPress add topic tag function.

Description

add_topic_tag( $topic_id, $tag ); 

Parameters (2)

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

Usage

  1. if ( !function_exists( 'add_topic_tag' ) ) { 
  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 tag. 
  8. $tag = null; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = add_topic_tag($topic_id, $tag); 
  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_tag( $topic_id, $tag ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'bb_add_topic_tag'); 
  3. return bb_add_topic_tag( $topic_id, $tag );