Categories: Website

Disable comments in WordPress

Leaving comments open without good captcha protection in WordPress can lead to a lot of spam and oversized databases. Here is a quick way to disable comments for all posts from PHPMyAdmin (which can be launched from your hosting control panel).

Click the SQL tab in PHPMyAdmin and run the two commands below, one by one. First, we disable commenting on all posts:

UPDATE wp_posts SET comment_status = 'closed';

Next, we globally disable pingbacks/trackbacks on all posts:

UPDATE wp_posts SET ping_status = 'closed';

If you have a lot of SPAM already in the comments table, click the checkbox next to wp_comments under the database structure tab and select “Empty” from the dropdown below the list of tables.

Admin

Recent Posts

Enable Outgoing SMTP Server Authentication

All our servers need you to enable outgoing SMTP server authentication to be able to…

4 years ago

Plesk Tutorials – How to configure DNS for a domain in Plesk

Learn how to configure and check your DNS settings in Plesk. After you registered your…

5 years ago

cPanel Tutorials – Force HTTPS Redirect

This video demonstrates how to use the Force HTTPS Redirect feature. This feature allows you…

5 years ago

cPanel Tutorials – MultiPHP Manager

Use cPanel's MultiPHP Manager to manage your domains' PHP version. Being able to manage the…

5 years ago

Email account setup in Outlook 2016

This tutorial will help you to configure Microsoft Outlook 2016 for an email account. Step…

5 years ago

Message Queueing

Generally emails are directly delivered to the destination server. However, if the delivery attempt to…

5 years ago