# BuddyPress: Hide Noisy Activity Types From the Stream

> Removes routine entries such as "became a registered member", "changed their profile picture" and new friendships from the activity streams.

- Type: PHP
- Runs: Run everywhere
- Category: [Users](https://wpide.com/library/category/users/)
- Tags: buddypress, activity, cleanup
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/buddypress-hide-activity-types/

## Code

```php
if ( ! function_exists( 'buddypress' ) ) {
    return;
}

// Activity types to hide.
$wpide_bp_hidden_types = array( 'new_member', 'new_avatar', 'updated_profile', 'friendship_created' );

add_filter( 'bp_after_has_activities_parse_args', function ( $args ) use ( $wpide_bp_hidden_types ) {
    $query   = empty( $args['filter_query'] ) ? array() : (array) $args['filter_query'];
    $query[] = array( 'column' => 'type', 'value' => $wpide_bp_hidden_types, 'compare' => 'NOT IN' );

    $args['filter_query'] = $query;

    return $args;
} );
```

## Notes

The entries are hidden, not deleted, so removing a type from the list brings them back.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "BuddyPress: Hide Noisy Activity Types From the Stream" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
