Disable comments on all posts/pages

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

You can make it always return false via a filter 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.

Leave a Comment