Skip to content

Instantly share code, notes, and snippets.

@r-a-y
Created April 16, 2014 22:02
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save r-a-y/10937509 to your computer and use it in GitHub Desktop.
Save r-a-y/10937509 to your computer and use it in GitHub Desktop.
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
Copy link

:) nice helped me

@jmgrodi99
Copy link

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