By: Prem Tiwari | Last Updated:
This is a very short tutorial on the WordPress tips & tricks. In this tutorial, I will explain how to disable comments from all posts in WordPress site.
If you want to disable commenting system from your posts and pages, then follow the below steps:
Step 1) Login to your cPanel and open PHPMyAdmin.
Step 2) Now select the database and click on the SQL tabs.
Step 3) Copy the below MySQL queries and execute it.
Step 4) enjoy!
// Disable all comments
UPDATE wp_posts SET comment_status = 'closed', ping_status = 'closed';
// Enable all comments
UPDATE wp_posts SET comment_status = 'open', ping_status = 'open';
Afte executed the above MySQL queries comment option will be disabled from all your posts.
Prem Tiwari is the founder of FreeWebMentor.com and also a professional developer who has vast experience in PHP and open source technologies. Apart from this, he is a blogger by hobby and also he has been a regular speaker of WordPress sessions in various IT Companies. View all posts by Prem Tiwari
Tags: woocommerce plugin for wordpress tutorial, woocommerce plugin wordpress tutorial, wordpress tutorial, wordpress tutorial for beginner, wordpress tutorial for beginners, wordpress tutorials, wordpress tutorials for beginners