bp_get_activity_comment_content

Return the content of the activity comment currently being displayed.

Description

(string) bp_get_activity_comment_content(); 

The content is run through two filters. bp_get_activity_content will apply all filters applied to activity items in general. Use 'bp_activity_comment_content' to modify the content of activity comments only.

Returns (string)

$content The content of the current activity comment.


Usage

  1. if ( !function_exists( 'bp_get_activity_comment_content' ) ) { 
  2. require_once '/bp-activity/bp-activity-template.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_get_activity_comment_content(); 
  7.  

Defined (1)

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

/bp-activity/bp-activity-template.php  
  1. function bp_get_activity_comment_content() { 
  2. global $activities_template; 
  3.  
  4. /** This filter is documented in bp-activity/bp-activity-template.php */ 
  5. $content = apply_filters( 'bp_get_activity_content', $activities_template->activity->current_comment->content ); 
  6.  
  7. /** 
  8. * Filters the content of the current activity comment. 
  9. * @since 1.2.0 
  10. * @param string $content The content of the current activity comment. 
  11. */ 
  12. return apply_filters( 'bp_activity_comment_content', $content );