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.
If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.
Article 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