Skip to:
Content
Pages
Categories
Search
Top
Bottom

Removing the Featured Image from the Activity Feed


  • Mike Witt
    Participant

    @mike80222

    Is there a recommended way to do this? Currently what I’m doing is this in functions.php

    function my_activity_picture_tweak( $content ) {
        $new_content = preg_replace('/<img(.*)>/', '', $content);
        echo $new_content;         
    }
    add_filter('bp_get_activity_content_body','my_activity_picture_tweak',10,1);
    

    This seems kind of crazy. Is there a better way to do this?

  • You must be logged in to reply to this topic.
Skip to toolbar