{"id":1116,"date":"2013-02-22T08:45:46","date_gmt":"2013-02-22T08:45:46","guid":{"rendered":"http:\/\/www.wordpressintegration.com\/blog\/?p=1116"},"modified":"2023-02-10T12:21:20","modified_gmt":"2023-02-10T12:21:20","slug":"get-rid-of-comments-in-your-wordpress-site-some-tips-and-hacks","status":"publish","type":"post","link":"https:\/\/www.wordpressintegration.com\/blog\/get-rid-of-comments-in-your-wordpress-site-some-tips-and-hacks\/","title":{"rendered":"Get rid of comments in your WordPress site: Some tips and hacks"},"content":{"rendered":"<p align=\"justify\">As developers of WordPress in a challenging online market, we are constantly asked by our clients for an easy way to moderate comments. WordPress, being a highly user friendly content management system, has an option to individually unapprove, edit, or delete a comment. But consider this; nearly every popular or moderately popular WordPress site is bombarded with hundreds of spam comments all day. <!--more-->Nearly all of them use spam filters but even then tons of unapproved or wrongly approved comments per day are accumulated, and God forbid if you leave your site for a month or so, you will have a collection of hundreds of comments waiting for approval.<\/p>\n<p align=\"justify\">If you go about deleting every single comment individually you won\u2019t have the time left for anything else. Therefore to alleviate this problem, here we present few tricks using which you can bulk moderate comments.<\/p>\n<h2>Delete comments using plugins<\/h2>\n<p align=\"justify\">There are a number of ways through which you can delete comments. Out of them the safest way is to use plugins. There are a number of plugins that can be used to moderate comments, each having its own advantages and disadvantages. Here we present a few plugins that can get the job done for you.<\/p>\n<h4><a href=\"https:\/\/wordpress.org\/plugins\/wp-ajax-edit-comments\/\" target=\"_blank\" rel=\"noopener noreferrer\">WP Ajax Edit Comments<\/a><\/h4>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1117 aligncenter\" title=\"WP Ajax Edit Comments\" src=\"https:\/\/www.wordpressintegration.com\/blog\/wp-content\/uploads\/2013\/02\/WP-Ajax-Edit-Comments.jpg\" alt=\"WP Ajax Edit Comments\" width=\"580\" height=\"300\" \/><\/p>\n<p align=\"justify\">This plugin is used for allowing users to edit their comments for a short period of time. However it is a complete comment management solution that can be used to mass delete approved, unapproved, or spam comments. The plugin also has the feature to move the comments or blacklist it. This plugin is great for those who have some time to analyze the comments.<\/p>\n<p><strong>Requires<\/strong>: WordPress 3.1 or higher<strong>|<\/strong><br \/>\n<strong>Compatible up to<\/strong>: WordPress 3.5.1<strong>|<\/strong><br \/>\n<strong>Downloads<\/strong>: 249,076<\/p>\n<h4><a href=\"https:\/\/wordpress.org\/plugins\/delete-pending-comments\/\" target=\"_blank\" rel=\"noopener noreferrer\">Delete Pending Comments<\/a><\/h4>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1118 aligncenter\" title=\"Delete Pending Comments\" src=\"https:\/\/www.wordpressintegration.com\/blog\/wp-content\/uploads\/2013\/02\/Delete-Pending-Comments.jpg\" alt=\"Delete Pending Comments\" width=\"580\" height=\"300\" \/><\/p>\n<p align=\"justify\">This plugin can delete all the pending unapproved comments. This plugin is a great option for those who face hundreds of spam comments monthly or daily. However it cannot identify legitimate comment from spam or irrelevant comments; to do that you have to personally check all the comments.<\/p>\n<p><strong>Requires<\/strong>: WordPress 2.7 or higher<strong>|<\/strong><br \/>\n<strong>Compatible up to<\/strong>: WordPress 3.0.5<strong>|<\/strong><br \/>\n<strong>Downloads<\/strong>: 26,871<\/p>\n<h4><a href=\"https:\/\/wordpress.org\/plugins\/bulk-comment-remove\/\" target=\"_blank\" rel=\"noopener noreferrer\">Bulk Comment Remove<\/a><\/h4>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1119 aligncenter\" title=\"Bulk Comment Remove\" src=\"https:\/\/www.wordpressintegration.com\/blog\/wp-content\/uploads\/2013\/02\/Bulk-Comment-Remove.jpg\" alt=\"Bulk Comment Remove\" width=\"580\" height=\"300\" \/><\/p>\n<p align=\"justify\">As the name suggests, Bulk Comment Remove can eliminate pending comments in mass. However, just like the previous plugin it won\u2019t delete the approved comments, neither can it identify relevant comments from spam ones.<\/p>\n<p><strong>Requires<\/strong>: WordPress 3 or higher<strong>|<\/strong><br \/>\n<strong>Compatible up to<\/strong>: WordPress 3.0.5<strong>|<\/strong><br \/>\n<strong>Downloads<\/strong>: 19,628<\/p>\n<h4><a href=\"https:\/\/wordpress.org\/plugins\/wpcommentcleaner\/\" target=\"_blank\" rel=\"noopener noreferrer\">WPCommentCleaner<\/a><\/h4>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1120 aligncenter\" title=\"WPCommentCleaner\" src=\"https:\/\/www.wordpressintegration.com\/blog\/wp-content\/uploads\/2013\/02\/WPCommentCleaner.jpg\" alt=\"WPCommentCleaner\" width=\"580\" height=\"300\" \/><\/p>\n<p align=\"justify\">WP Comment Cleaner can delete pending comments in bulk. But unlike the previously discussed plugins, it can delete approved, unapproved, and spam comments as well. It can\u2019t differentiae spam from genuine comments. Also this plugin is not tested for WordPress 3.5.1 or higher so it may break when used in them.<\/p>\n<p><strong>Requires<\/strong>: WordPress 2.8 or higher<strong>|<\/strong><br \/>\n<strong>Compatible up to<\/strong>: WordPress 3.4.2<strong>|<\/strong><br \/>\n<strong>Downloads<\/strong>: 2,620<\/p>\n<h2>Delete comments from WordPress dashboard<\/h2>\n<p align=\"justify\">The main reason why WordPress is extremely popular is because it\u2019s highly user friendly. Being user friendly means it has native features to manage every aspect of functionality easily. Therefore just like every feature of WordPress, comments are also highly customizable. You can easily delete approved, unapproved, and spam comments right from the WordPress dashboard, that too in bulk. Just follow these few simple steps<\/p>\n<ul>\n<li>Login to your WordPress dashboard<\/li>\n<li>From the left panel go to comments tab<\/li>\n<li>Now in the top right side of the screen, just below your login name in admin bar you will see a tab named <strong>Screen options<\/strong>. Click it<\/li>\n<li>Now in the <strong>Show on Screen<\/strong> panel you may enter the number of comments to show on the screen page. The maximum possible option is 999, so let\u2019s set it at 999.<\/li>\n<li>Now filter the comments according to your need in the comment page. You can filter approved, unapproved, spam, trash, or all comments. Now, let\u2019s assume you have to delete all unapproved comments. So, just click on <strong>unapproved<\/strong> and you will get a list of all unapproved comments.<\/li>\n<li>Now click on the top check box that is right beside the Author. This will select the check boxes of all the filtered comments.<\/li>\n<li>Now on the bulk actions drop down, select <strong>move to trash<\/strong>.<\/li>\n<li>Click on <strong>Apply<\/strong>.<\/li>\n<li>Now go to <strong>Trash<\/strong> option, then in select all the comments as told above. In the bulk action dropdown select <strong>Delete Permanently<\/strong> option and then click <strong>Apply<\/strong>. You have just deleted all the unapproved comments permanently.<\/li>\n<\/ul>\n<p align=\"justify\">With a few simple steps you have deleted 999 unapproved comments. If you have more than 999 comments just follow this step as many times as required. But be aware, there\u2018s no way to filter genuine and legitimate comments from spam ones (those that have evaded spam filter plugins) unless checked manually. This method will delete every unapproved comment, so you may have to sacrifice the genuine ones also.<\/p>\n<h2>Delete comments through PhpMyAdmin<\/h2>\n<p align=\"justify\">The above mentioned ways are sufficient for tackling any comment related problem but for the sake of completion I am providing you with one more way to delete comments. This is through directly accessing the PhpMyAdmin panel of the WordPress database. This method is <strong>for professionals and the curious ones<\/strong> only. Tampering with WordPress database may have unexpected repercussions so <strong>try this at your own risk<\/strong>. With that said lets first take a backup of your WordPress database.<\/p>\n<ul>\n<li>Go to <strong>PhpMyAdmin panel<\/strong> and click on the database in which you have made your WordPress site.<\/li>\n<li>Click on <strong>Export tab<\/strong>. Select all the database tables and save the database as SQL file. You can save it any way you like but we prefer SQL files as it\u2019s easier to upload back.<\/li>\n<li>Now with the backup done go to the <strong>PhpMyAdmin home<\/strong><\/li>\n<li>Click on the <strong>SQL <\/strong>tab.<\/li>\n<li>Run the following command<\/li>\n<li>DELETE FROM wp_comments WHERE comment_approved = <strong>&#8216;0&#8217;<\/strong><\/li>\n<li>This will delete all the unapproved comments. For deleting approved comments replace <strong>\u20180\u2019 with \u20181\u2019<\/strong>. Similarly <strong>replace \u20180\u2019 with \u2018spam\u2019 or \u2018trash\u2019<\/strong> for deleting spam and trash comments respectively<\/li>\n<\/ul>\n<p align=\"justify\">This will instantly erase all your selected comments as usual. It does not filter real comments from spam ones. If you have done something which you do not desire, simply Import the previously backed up data.<\/p>\n<h2>How to turn off comments permanently in your WordPress website<\/h2>\n<p align=\"justify\">Every WordPress developer and search engine optimization company, understands the importance of comments for improving the search engine ranking of any WordPress blog. But blogs are not the only type of websites that can be built using WordPress and comments are not necessary for every page or site. If your website is made in such a way that you don\u2019t even need the comments then too there are options available in WordPress.<\/p>\n<h4>Disabling comments from Dashboard<\/h4>\n<p align=\"justify\">As we know, WordPress is highly customizable. It was made keeping in mind that it will be used for making different types of sites. Therefore, it has many inbuilt features that can be utilized to customize your comment. Disabling comments on your posts and pages is thus not that difficult. Simply follow the steps below:-<\/p>\n<ul>\n<li>Go to the specific page or post in which you want to disable comments<\/li>\n<li>Click on the <strong>Screen Option<\/strong> tab in the top right corner of the screen and then check on the <strong>Discussion<\/strong> check-box<\/li>\n<li>You will now have a discussion panel in the bottom of the screen. Uncheck the <strong>Allow Comments<\/strong> option.<\/li>\n<li>This will disable the comments of that particular post or page, but will not remove the comments that have already been posted.<\/li>\n<li>If you want to disable comments in all the present and future posts and pages, go to <strong>Settings-&gt;Discussion<\/strong> and in the <strong>Default article settings<\/strong> uncheck <strong>Allow people to post comments on new articles<\/strong>. This will permanently disable comments from you posts.<\/li>\n<\/ul>\n<h4>Plugin to disable comments<\/h4>\n<p align=\"justify\">Of course there are plugins available to do this job for you. These are customizable and easy to use. The most relevant and the most famous plugins are:-<\/p>\n<h5><a href=\"https:\/\/wordpress.org\/plugins\/disable-comments\/\" target=\"_blank\" rel=\"noopener noreferrer\">Disable Comments<\/a><\/h5>\n<p style=\"text-align: center;\"><img decoding=\"async\" loading=\"lazy\" class=\"size-full wp-image-1121 aligncenter\" title=\"Disable Comments\" src=\"https:\/\/www.wordpressintegration.com\/blog\/wp-content\/uploads\/2013\/02\/Disable-Comments.jpg\" alt=\"Disable Comments\" width=\"580\" height=\"300\" \/><\/p>\n<p align=\"justify\">The main use of this plugin is to disable global comments from a certain post type such as post, attachment, page, etc. This is not possible from WordPress inbuilt features. In addition if you have multiple websites on a single WordPress installation, this plugin can be used to disable comments on the entire network.<\/p>\n<p><strong>Requires<\/strong>: 3.2 or higher<strong>|<\/strong><br \/>\n<strong>Compatible up to<\/strong>: 3.5.1<strong>|<\/strong><br \/>\n<strong>Last Updated<\/strong>: 2013-2-21<strong>|<\/strong><br \/>\n<strong>Downloads<\/strong>: 199,463<\/p>\n<h4>Do not display \u201ccomments are closed\u201d tag<\/h4>\n<p align=\"justify\">We have some clients who want their WordPress pages to have only few selected comments from established users and do not want any additional comments from any other source. This customization is possible from dashboard but it has a small but undesirable effect. At the end of post you will see a tag saying \u201cComments are Closed\u201d. For aesthetic reasons most do not like this tag. Removing this tag is a little technical but not that difficult. Just follow these simple steps:-<\/p>\n<ul>\n<li>Go to <strong>Appearance-&gt; Editor<\/strong><\/li>\n<li>Open <strong>comment.php<\/strong><\/li>\n<li><span style=\"color: #000000;\">Find the following lines<\/span><\/li>\n<li><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">if ( ! comments_open() &amp;&amp; get_comments_number() ) : ?&gt;<br \/>\n&lt;p&gt;&lt;?php _e( <strong>&#8216;Comments are closed&#8217; , &#8216;twentyeleven&#8217;<\/strong> ); ?&gt;&lt;\/p&gt;<br \/>\n&lt;?php endif; ?&gt;<\/span><br \/>\n<\/span><\/li>\n<li><span style=\"color: #000000;\">Change it to<\/span><\/li>\n<li><span style=\"color: #ff0000;\"><span style=\"color: #000000;\">if ( ! comments_open() &amp;&amp; get_comments_number() ) : ?&gt;<br \/>\n&lt;p&gt;&lt;?php _e( <strong>&#8221; , &#8216;twentyeleven&#8217;<\/strong> ); ?&gt;&lt;\/p&gt;<br \/>\n&lt;?php endif; ?&gt;<\/span><br \/>\n<\/span><\/li>\n<li>Yes, we have just changed the &#8216;Comments are closed&#8217; to simply nothing or can be used to display any message you like.<\/li>\n<li>Click on update and say goodbye to the Comments are closed tag<\/li>\n<\/ul>\n<p align=\"justify\">As demonstrated it\u2019s a simple step and won\u2019t effect any other program, plugin, theme, or widget. Disabling comments may be required in some specific pages, like About Us page, but they are really important for blogs and discussion pages. They promote mutual interactions, increase the authority of your blog, encourage visitors to visit regularly on a page that they have already read, and most importantly critical and informative comments by experts not just increases your overall knowledge but of your future visitors. So don\u2019t jump the gun for disabling the comments. Analyze and consult first.<\/p>\n<h2>Conclusion<\/h2>\n<p align=\"justify\">Removing comments is not a very difficult task but unfortunately removing spammy comments from genuine comments is a very difficult job. There are plugins that can filter spam comments but the human ingenuity to spam tops all and you get unrequired comments no matter which plugin you use. But still they are a great help.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As developers of WordPress in a challenging online market, we are constantly asked by our clients for an easy way to moderate comments&#8230;.<\/p>\n","protected":false},"author":14,"featured_media":4480,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[379,381,380,51,378,377],"acf":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/posts\/1116"}],"collection":[{"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/users\/14"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/comments?post=1116"}],"version-history":[{"count":2,"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/posts\/1116\/revisions"}],"predecessor-version":[{"id":5703,"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/posts\/1116\/revisions\/5703"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/media\/4480"}],"wp:attachment":[{"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/media?parent=1116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/categories?post=1116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wordpressintegration.com\/blog\/wp-json\/wp\/v2\/tags?post=1116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}