Automatically close comment on all WordPress post

Few months back, this blog was targeted by spammers and bot, submitting comments with spam links on every article. I grew tired of deleting those spam comments and decided to close the comment form.

Trying to close comment on each and every post will be time-consuming.
To automatically close comments on all published post, follow the steps below.

  • Login to your WordPress dashboard and navigate to Settings -> Discussion
  • Under Other comment settings, tick Automatically close comments on articles older than and set the number of days to 1 or 0.
    Automatically close comment on WordPress post
  • If you have an active cache plugin like WP super cache, make sure you clear cache for the change to take effect.
Don’t miss out!
Subscribe to My Newsletter
Invalid email address