Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Is there a quick way to disable all comments on all posts and pages. I know that you can go into the dashboard under posts, click edit, and Do Not Allow, under comments. Is that the only way?

share|improve this question
2  
8 questions; 0 accepted answers. You need to start accepting correct answers. –  Chip Bennett Jul 18 '11 at 20:58
add comment

3 Answers

The check if comments are enabled is performed by comments_open() function.

You can make it always return false with something like this:

add_filter('comments_open`, '__return_false');

Other way would be to make comments available to only registered users (that is if you don't have open registration) in Settings > Discussion.

share|improve this answer
    
Most simple, native-wp and best solution. +1 –  kaiser Jul 16 '11 at 16:57
add comment

Not including the comment-form in your theme also works (that's what I usually do).

share|improve this answer
add comment

I have write an plugin for this job. https://github.com/bueltge/Remove-Comments-Absolutely

WordPress has on many different points jobs and views for comments, if you will not use all this, use the plugin or customize the source for your requirements.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.