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

WordPress Response Body too Large and Too many arguments in Request Errors

If you are receiving a response body too large error with WordPress it is a result of WordPress...

CloudFlare for WordPress

CloudFlare plugin is available for WordPress! Key features are as follows: To ensure you have no...

Static HTML Files Not Being Displayed with WordPress

This can occur when WordPress's .htaccess rewrites take place over the static html file. Place...

Not Receiving Form Email Through WordPress - SMTP

If you are not able to sent email or receive email from your WordPress contact form, you can...

504 error - Are you sure you want to do this?

In wordpress if you receive either of the following errors when trying to upload a theme... 504...