Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Force activity loops in BuddyPress to show activity comments as separate entries all the time.
<?php
/*
Plugin Name: BuddyPress - Show Individual Activity Comments Separately
Description: Force activity loops to show activity comments as separate entries.
Version: 0.1
Author: r-a-y
Author URI: http://profiles.wordpress.org/r-a-y
License: GPLv2 or later
*/
add_filter( 'bp_after_has_activities_parse_args', 'ray_bp_display_comments_stream' );
/**
* Force activity loops to show activity comments as separate entries.
*
* Only available in BuddyPress 2.0.
*/
function ray_bp_display_comments_stream( $retval ) {
$retval['display_comments'] = 'stream';
return $retval;
}
@modmanmatt

This comment has been minimized.

Copy link

@modmanmatt modmanmatt commented Jan 26, 2015

:) nice helped me

@jmgrodi99

This comment has been minimized.

Copy link

@jmgrodi99 jmgrodi99 commented Feb 8, 2016

Thanks r-a-y! Would it be possible to have comments on group updates function similarly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment