bp_blogs_activity_new_post_content

The BuddyPress bp blogs activity new post content hook.

Description

apply_filters( 'bp_blogs_activity_new_post_content', (unknown) $post_post_content, (unknown) $post, (unknown) $post_url, (unknown) $post_post_type ); 

Parameters (4)

0. $post_post_content (unknown)
The post post content.
1. $post (unknown)
The post.
2. $post_url (unknown)
The post url.
3. $post_post_type (unknown)
The post post type.

Usage

To run the hook, copy the example below.
  1. $post_post_content = apply_filters( 'bp_blogs_activity_new_post_content', $post_post_content, $post, $post_url, $post_post_type ); 
  2.  
  3. if ( !empty( $post_post_content ) ) { 
  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_activity_new_post_content callback 
  2. function filter_bp_blogs_activity_new_post_content( $post_post_content, $post, $post_url, $post_post_type ) { 
  3. // make filter magic happen here... 
  4. return $post_post_content
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_blogs_activity_new_post_content', 'filter_bp_blogs_activity_new_post_content', 10, 4 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_blogs_activity_new_post_content', 'filter_bp_blogs_activity_new_post_content', 10, 4 ); 

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. $activity_content = apply_filters( 'bp_blogs_activity_new_post_content', $post->post_content, $post, $post_url, $post->post_type );