Created
March 22, 2016 14:42
-
-
Save ckchaudhary/aad0452b149e304ab10b to your computer and use it in GitHub Desktop.
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 | |
add_filter( 'bp_activity_set_just-me_scope_args', 'bboss_remove_activity_comments_override', 11, 2 ); | |
function bboss_remove_activity_comments_override( $retval = array(), $filter = array() ){ | |
//this happens only only on user profiles, | |
//so ideally this if condition should not be commented out. | |
//But in this particular case, apparantely, this is happening on site-wide activity stream too, | |
//so this if contidiont should be commented out | |
//if( bp_displayed_user_id() ){ | |
$retval['override']['display_comments'] = 'threaded'; | |
//} | |
return $retval; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment