Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • ruess
    Participant

    @ruess

    Super helpful and very hard to find. Just so we keep this archived (as the vital code is on a blog), I’m going to repeat it below:

    function my_bp_activities_include_activity_types( $retval ) {
        // only allow the following activity types to be shown
        $retval['action'] = array(
            'activity_update',
            'activity_comment',
            'new_blog_post',
            'new_blog_comment',
            'friendship_created',
            'created_group',
        );
     
        return $retval;
    }
    add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_include_activity_types' );
Viewing 1 replies (of 1 total)
Skip to toolbar