@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’.
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.
You could just remove the button and comment form from the template?
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?
@qasimilyas
10 years ago
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.