Created
April 16, 2014 22:02
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; | |
} |
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
:) nice helped me