Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to remove the post content from the buddypress activity stream and would like to replace the content/body with a custom field that I've added in.

Any ideas where I should be looking? I've been looking around for a while and cant seem to figure it out.

I am using WordPress 3.4.1 & Buddypress 1.5.6

share|improve this question

1 Answer 1

up vote 1 down vote accepted

You should state which versions of WP and BP you're using.

This should change the content part of what is recorded. You can put it in your theme's functions.php

add_filter( 'bp_blogs_activity_new_post_content', 'record_post_activity_content', 1, 3 );
function record_post_activity_content($activity_content, $post, $post_permalink ){
    if( $post->post_type == 'post' ) {
        $activity_content = 'your custom field';
        return $activity_content;
share|improve this answer
Sorry, my bad forgot about that! WordPress 3.4.1 & Buddypress 1.5.6 I'll try what you're recommending and get back to you, thanks! –  Rob Sep 29 '12 at 23:23
Thanks, with your help I managed to get it all going :) –  Rob Sep 30 '12 at 0:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.