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';




  • 162 Users Found This Useful

Was this answer helpful?

Related Articles

WordPress Error Establishing a Database Connection

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

WordPress Security

Even with many layers of server security, if a WordPress install is not constantly updated and...

Optimize WordPress Performance

With our service, there are many ways to speed up the performance of your WordPress website. We...

WordPress error "This file cannot be imported. It may be caused by file_uploads being disabled in your php.ini".

The following error may be received if you attempt to upload a theme or file larger than the...

Wordpress Error Missing a temporary folder

When this occurs you may define a tmp directory in the following matter:  add......