This topic has 7 replies, 2 voices, and was last updated 9 years by Laura.

  • Author
  • #118966
     HDcms
    Participant

    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
    
    #119587
     Laura
    Moderator
    Not marked as solution
    #119593
     HDcms
    Participant
    Not marked as solution
    #119817
     HDcms
    Participant
    Not marked as solution
    #119915
     HDcms
    Participant
    Not marked as solution
    #120271
     Laura
    Moderator
    Not marked as solution
    #120274
     HDcms
    Participant
    Not marked as solution
    #120495
     Laura
    Moderator
    Not marked as solution
Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Log in with your credentials

Forgot your details?