bbp_reply_topic_id

Output the topic id a reply belongs to.

Description

bbp_reply_topic_id( (int) $reply_id = 0 ); 

Parameters (1)

0. $reply_id — Optional. (int)
Reply id

Usage

  1. if ( !function_exists( 'bbp_reply_topic_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4. // Optional. Reply id 
  5. $reply_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bbp_reply_topic_id($reply_id); 
  9.  

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_reply_topic_id( $reply_id = 0 ) { 
  2. echo bbp_get_reply_topic_id( $reply_id );