bp_get_activity_content_body

Return the activity content body.

Description

(string) bp_get_activity_content_body(); 

Returns (string)

The activity content body.


Usage

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

Defined (1)

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

/bp-activity/bp-activity-template.php  
  1. function bp_get_activity_content_body() { 
  2. global $activities_template; 
  3.  
  4. // Backwards compatibility if action is not being used. 
  5. if ( empty( $activities_template->activity->action ) && ! empty( $activities_template->activity->content ) ) { 
  6. $activities_template->activity->content = bp_insert_activity_meta( $activities_template->activity->content ); 
  7.  
  8. /** 
  9. * Filters the activity content body. 
  10. * @since 1.2.0 
  11. * @param string $content Content body. 
  12. * @param object $activity Activity object. Passed by reference. 
  13. */ 
  14. return apply_filters_ref_array( 'bp_get_activity_content_body', array( $activities_template->activity->content, &$activities_template->activity ) );