Skip to:
Content
Pages
Categories
Search
Top
Bottom

What is the best way to remove or limit nested replies to comments on the activity?

Viewing 1 replies (of 1 total)

  • 9087877
    Inactive

    Found this snippet but I would still like to know how to turn off activity replies to comments all together. This snippet limits activity comments to 2 comments. It is placed in the functions.php of your theme:

    //begin comment limit snippet
    function test_comment_depth_limit( $can_comment, $comment ) {
    if ( $comment->mptt_left > 2 )
    $can_comment = false;
    
    return $can_comment;
    }
    add_filter( 'bp_activity_can_comment_reply', 'test_comment_depth_limit', 10, 2 );
    //End comment limit snippet
Viewing 1 replies (of 1 total)
  • The topic ‘What is the best way to remove or limit nested replies to comments on the activity?’ is closed to new replies.
Skip to toolbar