Reply To: Profile picture update
This approach won’t remove existing ‘profile pic’ updates, but will prevent new ones from being created.
function mrky_dont_save_some_activity( $activity_object ) {
$exclude = array( 'new_avatar', 'updated_profile' );
if( in_array( $activity_object->type, $exclude ) )
$activity_object->type = false;
}
add_action('bp_activity_before_save', 'mrky_dont_save_some_activity', 1, 15 );