bbp_reply_class

Output the row class of a reply.

Description

bbp_reply_class( (int) $reply_id = 0, (array) $classes = array() ); 

Parameters (2)

0. $reply_id — Optional. (int)
Reply ID
1. $classes — Optional. (array) => array()
Extra classes you can pass when calling this function

Usage

  1. if ( !function_exists( 'bbp_reply_class' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4. // Optional. Reply ID 
  5. $reply_id = -1; 
  6.  
  7. // Extra classes you can pass when calling this function 
  8. $classes = array(); 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = bbp_reply_class($reply_id, $classes); 
  12.  

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_reply_class( $reply_id = 0, $classes = array() ) { 
  2. echo bbp_get_reply_class( $reply_id, $classes );