WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a few different websites running various versions of Wordpress that have comments and trackbacks turned off, yet I still receive emails saying there's some waiting for me!

I've turned them both off in the admin area and also removed the comments box completely yet I still get them, how can I fully turn them off?

share|improve this question
What is senders email address.. is it same as your wordpress email id? – Vinod Dalvi Mar 4 '13 at 9:15
@VinodDalvi It's from the default email address in the admin. – Rob Mar 4 '13 at 9:16
I posted this few hours ago wordpress.stackexchange.com/questions/89236/… - you could try this method to turn the comments off. – birgire Mar 4 '13 at 9:21
@Rob Is the solution provided by birgie working for you? – Vinod Dalvi Mar 4 '13 at 9:26
@birgire and VinodDalvi the question is not only about comments, the solution provided by birgire won't prevent trackbacks posting. – Eugene Manuilov Mar 4 '13 at 9:37
up vote 2 down vote accepted

To prevent comments receiving add following line to your functions.php file:

add_filter( 'comments_open', '__return_false' );

And to prevent trackbacks receiving just add this snippet:

add_filter( 'pings_open', '__return_false' );
share|improve this answer
Ok that sorts comments, what about trackbacks (probably more annoying than comments!)? – Rob Mar 4 '13 at 9:29
@Rob I have updated my answer – Eugene Manuilov Mar 4 '13 at 9:32

Your Answer


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.