bb_update_topicmeta

The BuddyPress bb update topicmeta function.

Description

bb_update_topicmeta( $topic_id, $meta_key, $meta_value ); 

Parameters (3)

0. $topic_id
The topic id.
1. $meta_key
The meta key.
2. $meta_value
The meta value.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-meta.php  
  1. function bb_update_topicmeta( $topic_id, $meta_key, $meta_value ) 
  2. return bb_update_meta( $topic_id, $meta_key, $meta_value, 'topic' );