How to disable WordPress comments, pingbacks and trackbacks


Now days pingbacks and trackbacks are mostly SPAM when it comes to WordPress. To disable them completely, first backup your database. Afterward open phpmyadmin, select the database, click SQL and run the following commands:



UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'post';
UPDATE wp_posts SET ping_status='closed' WHERE post_status = 'publish' AND post_type = 'page';


Afterward go into your settings area, select discussion and disable these features.


If you are having a problem with comment SPAM and would rather remove and disable comments you can use a plugin like WP-Cleanup and use the following in phpmyadmin:



UPDATE wp_posts SET comment_status='closed' WHERE post_status = 'publish' AND post_type = 'post';
UPDATE wp_posts SET comment_status='closed' WHERE post_status = 'publish' AND post_type = 'page';





Share this page:


Was this article useful? Have any suggestions or improvements to the information?

Also Read

Plugins on WordPress

There are many great ways to setup and install plugins on WordPress. You may find a library of...

WordPress Error Establishing a Database Connection

In a nutshell, you are getting this error because WordPress struggles to establish a database...

Create Static Files with your WordPress Install

Reduce the processor and memory load of your site but publishing it into html files:...

Do you have a WordPress plugin slowing you down?

Some WordPress plugins can really bog down your site's performance. P3 Plugin Profile can help in...