bb_update_topic

The BuddyPress bb update topic function.

Description

bb_update_topic( $title, $topic_id ); 

Parameters (2)

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

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-topics.php  
  1. function bb_update_topic( $title, $topic_id ) { 
  2. $title = stripslashes( $title ); 
  3. return bb_insert_topic( array( 'topic_title' => $title, 'topic_id' => $topic_id ) );