bp_blogs_record_activity_content

Filters the content associated with activity for activity stream.

Description

apply_filters( 'bp_blogs_record_activity_content', (string) $bp_activity_create_summary, (string) $r_content, (array) $r ); 

Parameters (3)

0. $bp_activity_create_summary (string) => bp_activity_create_summary( $r['content'], $r )
Generated summary from content for the activity stream.
1. $r_content (string)
Content for the activity stream.
2. $r (array)
Array of arguments used for the activity stream item.

Usage

To run the hook, copy the example below.
  1. $bp_activity_create_summary = apply_filters( 'bp_blogs_record_activity_content', $bp_activity_create_summary, $r_content, $r ); 
  2.  
  3. if ( !empty( $bp_activity_create_summary ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_blogs_record_activity_content callback 
  2. function filter_bp_blogs_record_activity_content( $bp_activity_create_summary, $r_content, $r ) { 
  3. // make filter magic happen here... 
  4. return $bp_activity_create_summary
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_blogs_record_activity_content', 'filter_bp_blogs_record_activity_content', 10, 3 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_blogs_record_activity_content', 'filter_bp_blogs_record_activity_content', 10, 3 ); 

Defined (4)

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

/bp-blogs/bp-blogs-activity.php  
  1. $r['content'] = apply_filters( 'bp_blogs_record_activity_content', bp_activity_create_summary( $r['content'], $r ), $r['content'], $r ); 
/bp-activity/bp-activity-functions.php  
  1. $activity_args['content'] = apply_filters( 'bp_blogs_record_activity_content', $activity_summary, $activity_args['content'], $activity_args, $post->post_type ); 
  1. $activity->content = apply_filters( 'bp_blogs_record_activity_content', $activity_summary, $post->post_content, (array) $activity, $post->post_type ); 
  1. $activity_args['content'] = apply_filters( 'bp_blogs_record_activity_content', $activity_summary, $activity_args['content'], $activity_args, $post_type );