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

Install WordPress on Host

With Ultra Web Hosting you can install WordPress on your hosting account with us in seconds....

CloudFlare for WordPress

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

Wordpress Error Missing a temporary folder

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

JetPack says my website is offline

Jetpack Monitor says my website is offline, responding intermittently, or is extremely...

Quickly Disable All WordPress Plugins via phpMyAdmin

Before beginning, be sure to have a backup of your database. Then, login to your database using...