Skip to:
Content
Pages
Categories
Search
Top
Bottom

Disabling Comments in BuddyPress


  • qasimilyas
    Participant

    @qasimilyas

    Hi,
    I am using latest WP and BP versions and I want to disable all kinds of commenting on my website. I searched and found this line to add in functions.php – add_filter(‘bp_activity_can_comment’,’__return_false’);
    This solution however is not working. I have also added it to bp-custom.php and not working there either. It took a whole day of mine and I will be grateful if someone points me to a solution.
    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

  • notpoppy
    Participant

    @notpoppy

    @qasimilyas Apologies if I’m missing the point here, but isn’t this something you need to change in WordPress?

    Uncheck ‘Allow people to post comments on new articles’ here:

    /wp-admin/options-discussion.php

    Of course for any articles you’ve already published you’re going to need to disable commenting individually by going into the posts and unchecking ‘Allow comments.’ under ‘Discussion’.


    qasimilyas
    Participant

    @qasimilyas

    I wish it was that simple. I have tried numerous tricks, including getting into the core functions and seting bp_disable_activity_comments true but nothing worked so far. I am a little surprised because these simple choices should be available to the admin in the dashboard.


    Henry Wright
    Moderator

    @henrywright

    You could just remove the button and comment form from the template?


    qasimilyas
    Participant

    @qasimilyas

    Which template?
    Also, if I remove from there, will it show a blank space at that exact space or other buttons on the right side adjust accordingly to the left?


    Henry Wright
    Moderator

    @henrywright

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Disabling Comments in BuddyPress’ is closed to new replies.
Skip to toolbar