Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Site Wide Activty Stream (WEIRD BEHAVIOUR)


John James Jacoby
Keymaster

@johnjamesjacoby

Your best bet is to make a custom functions to put in wp-plugins/bp-custom.php, to hook into bp_get_post_content and alter the results.

Something like…

function your_custom_post_content( $post_content ) {

// Change the line below to do your custom magic
$new_post_content = $post_content;

return $new_post_content;

}
add_filter( 'bp_get_post_content', 'your_custom_post_content' );

In this line…

$new_post_content = $post_content;

…you will want to figure out how you want to trim out the extra mark-up you don’t need.

This could also be done with some custom kses filtering, but I think this way is the easiest way to make sure you’re not changing anything else in the process and are only filtering and affecting this one area.

Skip to toolbar