1

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?

  • 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
  • 1
    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
  • 1
    @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
2

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' );
  • 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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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