bp_activity_comment_depth

Output the depth of the current activity comment.

Description

bp_activity_comment_depth( (int) $comment = 0 ); 

Parameters (1)

0. $comment — Optional. (int)
Object of the activity comment or activity comment ID. Usually unnecessary when used in activity comment loop.

Usage

  1. if ( !function_exists( 'bp_activity_comment_depth' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-template.php'; 
  3.  
  4. // Object of the activity comment or activity comment ID. Usually unnecessary 
  5. // when used in activity comment loop. 
  6. $comment = -1; 
  7.  
  8. // NOTICE! Understand what this does before running. 
  9. $result = bp_activity_comment_depth($comment); 
  10.  

Defined (1)

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

/bp-activity/bp-activity-template.php  
  1. function bp_activity_comment_depth( $comment = 0 ) { 
  2. echo bp_activity_get_comment_depth( $comment );