Skip to content

Instantly share code, notes, and snippets.

@ckchaudhary
Created March 22, 2016 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ckchaudhary/aad0452b149e304ab10b to your computer and use it in GitHub Desktop.
Save ckchaudhary/aad0452b149e304ab10b to your computer and use it in GitHub Desktop.
<?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