Hi,
I do not see how a question on the forum!
Do you have an idea to hide comments in the members activity stream. I want the members of the notes published in groups.
I tried but no results:
COPY CODE
function bpfr_remove_updates_commenting($can_comment) {
//defining the context
if($can_comment == true) :
$can_comment = bp_get_activity_action_name();
//just in case of...
if(empty($can_comment))
return;
//handling the activity types we want to disable
switch($can_comment){
case 'bbp_reply_create': // type name
$can_comment = ! ('bbp_reply_create');
break;
case 'activity_update': // type name
$can_comment = ! ('activity_update');
break;
// simply add more "case" if you want to exclude more activities
}
//action !
return $can_comment;
//context end here
endif;
}
add_filter('bp_activity_can_comment', 'bpfr_remove_updates_commenting');
Regards