bbp_reply_position

Output the numeric position of a reply within a topic.

Description

bbp_reply_position( (int) $reply_id = 0, (int) $topic_id = 0 ); 

Parameters (2)

0. $reply_id — Optional. (int)
Reply id
1. $topic_id — Optional. (int)
Topic id

Usage

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

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_reply_position( $reply_id = 0, $topic_id = 0 ) { 
  2. echo bbp_get_reply_position( $reply_id, $topic_id );