Reply To: Remove nested group post replies from activity stream
Hi @julia_b,
try this snippet (bp-custom.php)
function bpfr_activity_nocomment( $can_comment = true, $type = '' ) {
if ( empty( $can_comment ) ) {
return $can_comment;
}
// activities which can't be commented
$cant_comment_types = array(
'bbp_topic_create' => 1,
'bbp_reply_create' => 1,
);
return ! isset( $cant_comment_types[ $type ] );
}
add_filter( 'bp_activity_can_comment', 'bpfr_activity_nocomment', 10, 2 );
This is only an example. To get the exact activity name you want to disallow comments on the feed, see in xx_bp_activities table