Turning off trackbacks & comments

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?

Related posts

Leave a Reply

1 comment

  1. 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' );