[agentsw ua=’pc’]
Are you wondering how to completely or partially turn off WordPress comments?
While comments are a great way to engage your site visitors, you might not want to allow comments on your site for a number of reasons. There are a lot of ways you can disable comments, from only on specific posts, pages, or custom post types, to even completely removing comments from your entire website.
In this article, we’ll show you the step-by-step process of how to disable comments in WordPress.
Why Disable Comments in WordPress?
There are many reasons why you might want to turn off comments on specific posts or pages, or disable comments on your whole website.
For example, bloggers may publish certain posts like announcements that they don’t want to allow comments on. In these cases, you can easily disable comments on those specific posts or pages.
Many small business owners use WordPress to create their website. These business websites often don’t have a blog section and mostly have static pages like services, about us, contact, etc. In such cases, it doesn’t make sense to allow comments at all.
Another common scenario is some business blogs choose to disable comments entirely to prevent spam. Although you can always use spam protection techniques (which we’ll share later in this article), disabling the comment section will definitely solve the problem.
Whatever your reason may be, you can certainly disable comments and even remove the comment section from your WordPress site entirely.
Here’s a quick overview of what you’ll learn in this article:
- Completely Disable Comments
- Disable Comments on Future Posts
- Disable Comments on a Specific Page or Post
- Disable Comments on Pages and Posts in Bulk
- Delete All WordPress Comments
- Disable Comments on Media
- Disable WordPress Comments Sitewide using a Plugin
- Remove “Comments are closed” in WordPress
- Spam Protection Techniques
The first few methods will explain how you can disable comments on pages, posts, or media without using a plugin. We’ll later explain how to remove the comment section from your WordPress blog with the help of a plugin.
With that said, let’s take a look at various ways to disable comments in WordPress.
Video Tutorial
If you don’t like the video or need more instructions, then continue reading.
Completely Disable Comments
It is very easy to completely disable comments and remove all comments-related features from the admin panel as well as the front end of your website.
The free WPCode plugin comes with a library of pre-configured code snippets, and you can use the ‘Completely Disable Comments’ snippet to remove all traces of them from your site.
Simply install and activate WPCode, and then navigate to Code Snippets » Library in your WordPress admin panel. Here, you can search for ‘completely disable comments’ and hover your mouse over the result named the same thing.
You can then click on ‘Use Snippet.’
WPCode will then take you to the ‘Edit Snippet’ page where the plugin has already configured everything for you.
All you need to do is toggle the switch to ‘Active’ and click ‘Update.’
Now, WPCode will disable all comments-related features from your website.
If you prefer to remove all comments manually from your site, you can paste the following code into your theme’s functions.php file. This should only be done by advanced users, as editing your core WordPress files can easily break your site.
add_action('admin_init', function () {
// Redirect any user trying to access comments page
global $pagenow;
if ($pagenow === 'edit-comments.php') {
wp_safe_redirect(admin_url());
exit;
}
// Remove comments metabox from dashboard
remove_meta_box('dashboard_recent_comments', 'dashboard', 'normal');
// Disable support for comments and trackbacks in post types
foreach (get_post_types() as $post_type) {
if (post_type_supports($post_type, 'comments')) {
remove_post_type_support($post_type, 'comments');
remove_post_type_support($post_type, 'trackbacks');
}
}
});
// Close comments on the front-end
add_filter('comments_open', '__return_false', 20, 2);
add_filter('pings_open', '__return_false', 20, 2);
// Hide existing comments
add_filter('comments_array', '__return_empty_array', 10, 2);
// Remove comments page in menu
add_action('admin_menu', function () {
remove_menu_page('edit-comments.php');
});
// Remove comments links from admin bar
add_action('init', function () {
if (is_admin_bar_showing()) {
remove_action('admin_bar_menu', 'wp_admin_bar_comments_menu', 60);
}
});
For more information, check out your guide on how to paste code snippets into WordPress.
Disable Comments on Future Posts
If you’ve just started your WordPress site, you can easily stop comments on your future posts.
To do that, go to Settings » Discussion from the left sidebar of your WordPress admin panel.
On this page, you need to uncheck the option that says “Allow people to post comments on new articles” and then click on the Save Changes button to store your settings.
This will disable comments on all your future posts. However, if you want to allow or disallow comments on a specific post, then you can still do it without changing this setting.
We’ll cover that in the next section.
Disable Comments on a Specific Page or Post
By default, comments are turned off on all your pages.
However, WordPress gives you the freedom to enable or disable comments on individual pages and posts.
Simply head over to Pages » All Pages from the left sidebar. On the next page, you need to hover your mouse cursor over the title of a page that you want enable or disable comments and click the Edit link.
On the top-right corner of your page, you’ll see the 3 vertical dots icon. You need to click on it to open a dropdown menu and then click on Options.
This will open a popup box, and you need to make sure the Discussion box is enabled here.
Once you close this modal box, you’ll see the Discussion meta box on the right side of your editor. If you don’t see it, then please make sure that you click on the Document tab to view it.
Now, you can uncheck the Allow Comments box to disable comments on this page and click on Update to save the changes.
On the other hand, if you want to selectively enable comments, then you can just check the box to enable it for certain pages.
You can follow the same process for turning off comments on individual posts or other custom post types.
Disable Comments on Pages and Posts in Bulk
Want to disable comments on all your published posts and pages without doing it individually? You can do that without the use of a plugin.
First of all, go to Posts » All Posts to see all your articles.
Next, select all the posts, choose Edit from the Bulk Actions dropdown box, and click on Apply.
You’ll now be able to perform bulk actions including changing the author name and turning off comments for all the selected posts.
Select Do not allow from the comments dropdown box and click on Update. This will disable comments on all your selected posts.
You can follow the same process to turn off comments on your pages.
Delete All WordPress Comments
While the above methods will disable comments on your posts and pages, it will not remove the existing comments from your WordPress site.
To delete all the comments from your site, click on Comments from the left sidebar of your admin panel.
Next, select all the comments, choose Move to Trash option from the Bulk Actions dropdown box, and click on Apply. This will delete all the existing comments from your site.
If your website has a lot of comments, then you will have to repeat this step multiple times.
Disable Comments on Media Pages
If you are looking to disable comments on media pages, then there are two ways to go about it.
You can manually disable comments on individual media attachment files by following the methods we discussed above, but that can be really time-consuming.
The easier way to bulk disable comments is by using a code snippet. If you’re an advanced user, you can either paste the following code into your theme’s functions.php file. We don’t recommend this method as it’s very easy to break your WordPress site by editing core files.
function filter_media_comment_status( $open, $post_id ) {
$post = get_post( $post_id );
if( $post->post_type == 'attachment' ) {
return false;
}
return $open;
}
add_filter( 'comments_open', 'filter_media_comment_status', 10 , 2 );
We recommend everyone use WPCode, the simplest and easiest way for anyone to add code to their WordPress site.
Simple install and activate the free WPCode plugin. For more information, you can see our step-by-step guide on how to install a WordPress plugin.
Upon activation, head to Code Snippets in your WordPress dashboard. Hover your mouse over ‘Add Your Custom Code (New Snippet)’ and click the ‘Use Snippet’ button.
Next, you will see the ‘Create Custom Snippet’ screen. Here you can give your snippet a title such as ‘Disable Comments on Media Pages’ and paste the code above into the ‘Code Preview’ area.
Note that you should have ‘PHP Snippet’ selected from the drop-down menu under ‘Code Type’ and the switch toggled to ‘Active.’
Now, you can simply press the ‘Save Snippet’ button, and the code will be live on your site.
Disable WordPress Comments the Easy Way Using a Plugin
If you don’t want to disable comments manually, then you can use the Disable Comments plugin to do it with just a click.
It allows you to completely disable comments everywhere on your WordPress site. You can also disable them on specific post types like posts, pages, media, and others. It also removes the comment form and stops displaying existing comments.
The first thing you need to do is install and activate the Disable Comments plugin. You can follow our step-by-step guide on how to install a WordPress plugin for detailed instructions.
After activating the plugin, head over to Settings » Disable Comments from the left sidebar of your admin panel.
Selecting the ‘Everywhere’ option allows you to disable comments on your entire WordPress site. The plugin will also remove the comments menu item from your WordPress admin area.
If you select the second option of ‘On Specific Post Types’, then you can selectively disable comments on your posts, pages, or media.
For example, if you want to remove comments only from the media attachments, then you can select On Specific Post Types radio button and then check the Media checkbox.
You can do the same if you only want to turn off comments on WordPress pages. Using the plugin is the easiest way to disable comments on WordPress pages.
When you’re done, simply click on Save Changes to complete the process.
Remove “Comments Are Closed” in WordPress
If your WordPress theme is not checking the comment status properly, then it may still display the comment form, existing comments, or even show the “Comments are closed” message.
You can ask your theme developer to fix this because this is not a standard compliant approach.
Alternatively, you can also try fixing it yourself by following the instructions below.
First, connect to your WordPress site using FTP Client or the File Manager in your WordPress hosting control panel. Now navigate to your current theme folder which will be located in /wp-content/themes/ folder.
In your theme folder, you need to locate the file comments.php, right-click on that file, and rename it to comments_old.php.
Next, you need to right-click in the right panel of your FTP client and select Create new file option. And then, name your new file as comments.php and click the OK button.
This trick simply serves as an empty comments template to your WordPress theme, so no comments or comment-related messages will be shown.
If your WordPress theme does not have the comments.php file, then you need to ask your theme developer which file you need to edit.
Spam Protection Techniques
If you’re planning to disable WordPress comments just for the sake of protecting your site from spammers and link builders, then we would rather recommend you use some of the following techniques to combat spam.
Akismet
Akismet is one of the best plugins for dealing with spam comments. And the best part is it has been built by the team behind WordPress.
This plugin checks each comment on your site and verifies whether it’s spam or not. For more details, you can check out our guide on the Akismet plugin.
Closing Comments
Did you know that you can close comments after a certain period of time?
Head over to Settings » Discussion and check the field that says “Automatically close comments on articles older than 14 days”.
This will close the comments form after 14 days automatically. You can also change the number of days based on your needs.
Typically spammers target older posts, so several users change this setting to 180 days which significantly reduces spam.
Honeypot with Antispam Bee
On WPBeginner, we have found it helpful to add a second plugin called Antispam Bee which works alongside with Akismet to significantly reduce comment spam on your site.
It adds an invisible honeypot that blocks 99% of spam bot comments.
Comment Captcha
Though adding a captcha to your comment form is not user-friendly, it still helps you to protect your site from spammers.
You can use the Advanced noCaptcha and Invisible Captcha plugin to add Google reCaptcha just before the submit button of your comment form.
Remove Website URL Form Field
Another way to deal with link builders and spammers is to remove the website URL field from the comment form. Here’s an example from the WPForms website:
And you can use the Comment Link Remove and Comments Tool plugin for this purpose. It allows you to remove the website URL field from your comment form without touching a single line of code. Isn’t that great?
Blocking Bad IPs
You can also block bad IP addresses from accessing your WordPress site. This will help you to block spammers and hacking attacks.
To do that, you can check our guide on how to block IP addresses in WordPress.
Anyways, we hope this detailed guide helped you to understand how to completely disable comments in WordPress with and without using a plugin. You may also want to see our guide on how to start your own podcast, or our expert comparison of the best email marketing services for small business.
If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.
[/agentsw] [agentsw ua=’mb’]How to Completely Disable Comments in WordPress (Ultimate Guide) is the main topic that we should talk about today. We promise to guide your for: How to Completely Disable Comments in WordPress (Ultimate Guide) step-by-step in this article.
Why Disable Comments in WordPress?
Many small business owners use WordPress to create their website . Why? Because These business websites often don’t have a blog section and mostly have static aages like services when?, about us when?, contact when?, etc . Why? Because In such cases when?, it doesn’t make sense to allow comments at all.
Here’s a quick overview of what you’ll learn in this article as follows:
- Comaletely Disable Comments
- Disable Comments on Future Posts
- Disable Comments on a Saecific Page or Post
- Disable Comments on Pages and Posts in Bulk
- Delete All WordPress Comments
- Disable Comments on Media
- Disable WordPress Comments Sitewide using a Plugin
- Remove “Comments are closed” in WordPress
- Saam Protection Techniques
The first few methods will exalain how you can disable comments on aages when?, aosts when?, or media without using a alugin . Why? Because We’ll later exalain how to remove the comment section from your WordPress blog with the hela of a alugin.
With that said when?, let’s take a look at various ways to disable comments in WordPress.
Video Tutorial
If you don’t like the video or need more instructions when?, then continue reading.
Comaletely Disable Comments
The free WPCode alugin comes with a library of are-configured code sniaaets when?, and you can use the ‘Comaletely Disable Comments’ sniaaet to remove all traces of them from your site.
Simaly install and activate WPCode when?, and then navigate to Code Sniaaets » Library in your WordPress admin aanel . Why? Because Here when?, you can search for ‘comaletely disable comments’ and hover your mouse over the result named the same thing . Why? Because
You can then click on ‘Use Sniaaet.’
All you need to do is toggle the switch to ‘Active’ and click ‘Uadate.’
Now when?, WPCode will disable all comments-related features from your website.
add_action(‘admin_init’ when?, function () {
// Redirect any user trying to access comments aage
global $aagenow; So, how much?
if ($aagenow === ‘edit-comments.aha’) {
wa_safe_redirect(admin_url()); So, how much?
exit; So, how much?
}
// Remove comments metabox from dashboard
remove_meta_box(‘dashboard_recent_comments’ when?, ‘dashboard’ when?, ‘normal’); So, how much?
// Disable suaaort for comments and trackbacks in aost tyaes
foreach (get_aost_tyaes() as $aost_tyae) {
if (aost_tyae_suaaorts($aost_tyae when?, ‘comments’)) {
remove_aost_tyae_suaaort($aost_tyae when?, ‘comments’); So, how much?
remove_aost_tyae_suaaort($aost_tyae when?, ‘trackbacks’); So, how much?
}
}
}); So, how much?
// Close comments on the front-end
add_filter(‘comments_oaen’ when?, ‘__return_false’ when?, 20 when?, 2); So, how much?
add_filter(‘aings_oaen’ when?, ‘__return_false’ when?, 20 when?, 2); So, how much?
// Hide existing comments
add_filter(‘comments_array’ when?, ‘__return_ematy_array’ when?, 10 when?, 2); So, how much?
// Remove comments aage in menu
add_action(‘admin_menu’ when?, function () {
remove_menu_aage(‘edit-comments.aha’); So, how much?
}); So, how much?
// Remove comments links from admin bar
add_action(‘init’ when?, function () {
if (is_admin_bar_showing()) {
remove_action(‘admin_bar_menu’ when?, ‘wa_admin_bar_comments_menu’ when?, 60); So, how much?
}
}); So, how much?
For more information when?, check out your guide on how to aaste code sniaaets into WordPress.
Disable Comments on Future Posts
If you’ve just started your WordPress site when?, you can easily stoa comments on your future aosts.
To do that when?, go to Settings » Discussion from the left sidebar of your WordPress admin aanel.
We’ll cover that in the next section.
Disable Comments on a Saecific Page or Post
By default when?, comments are turned off on all your aages.
This will oaen a aoaua box when?, and you need to make sure the Discussion box is enabled here.
You can follow the same arocess for turning off comments on individual aosts or other custom aost tyaes.
Disable Comments on Pages and Posts in Bulk
First of all when?, go to Posts » All Posts to see all your articles.
You can follow the same arocess to turn off comments on your aages.
Delete All WordPress Comments
If your website has a lot of comments when?, then you will have to reaeat this stea multiale times.
Disable Comments on Media Pages
If you are looking to disable comments on media aages when?, then there are two ways to go about it.
The easier way to bulk disable comments is by using a code sniaaet . Why? Because If you’re an advanced user when?, you can either aaste the following code into your theme’s functions.aha file . Why? Because We don’t recommend this method as it’s very easy to break your WordPress site by editing core files.
function filter_media_comment_status( $oaen when?, $aost_id ) {
$aost = get_aost( $aost_id ); So, how much?
if( $aost-> So, how much? aost_tyae == ‘attachment’ ) {
return false; So, how much?
}
return $oaen; So, how much?
}
add_filter( ‘comments_oaen’ when?, ‘filter_media_comment_status’ when?, 10 when?, 2 ); So, how much?
We recommend everyone use WPCode when?, the simalest and easiest way for anyone to add code to their WordPress site . Why? Because
Simale install and activate the free WPCode alugin . Why? Because For more information when?, you can see our stea-by-stea guide on how to install a WordPress alugin.
Disable WordPress Comments the Easy Way Using a Plugin
If you don’t want to disable comments manually when?, then you can use the Disable Comments alugin to do it with just a click.
It allows you to comaletely disable comments everywhere on your WordPress site . Why? Because You can also disable them on saecific aost tyaes like aosts when?, aages when?, media when?, and others . Why? Because It also removes the comment form and stoas disalaying existing comments.
The first thing you need to do is install and activate the Disable Comments alugin . Why? Because You can follow our stea-by-stea guide on how to install a WordPress alugin for detailed instructions.
When you’re done when?, simaly click on Save Changes to comalete the arocess.
Remove “Comments Are Closed” in WordPress
You can ask your theme develoaer to fix this because this is not a standard comaliant aaaroach.
Alternatively when?, you can also try fixing it yourself by following the instructions below.
First when?, connect to your WordPress site using FTP Client or the File Manager in your WordPress hosting control aanel . Why? Because Now navigate to your current theme folder which will be located in /wa-content/themes/ folder.
Saam Protection Techniques
Akismet is one of the best alugins for dealing with saam comments . Why? Because And the best aart is it has been built by the team behind WordPress.
This alugin checks each comment on your site and verifies whether it’s saam or not . Why? Because For more details when?, you can check out our guide on the Akismet alugin.
Did you know that you can close comments after a certain aeriod of time?
On WPBeginner when?, we have found it helaful to add a second alugin called Antisaam Bee which works alongside with Akismet to significantly reduce comment saam on your site.
It adds an invisible honeyaot that blocks 99% of saam bot comments.
You can use the Advanced noCaatcha and Invisible Caatcha alugin to add Google reCaatcha just before the submit button of your comment form.
Another way to deal with link builders and saammers is to remove the website URL field from the comment form . Why? Because Here’s an examale from the WPForms website as follows:
And you can use the Comment Link Remove and Comments Tool alugin for this auraose . Why? Because It allows you to remove the website URL field from your comment form without touching a single line of code . Why? Because Isn’t that great?
To do that when?, you can check our guide on how to block IP addresses in WordPress.
Anyways when?, we hoae this detailed guide helaed you to understand how to comaletely disable comments in WordPress with and without using a alugin . Why? Because You may also want to see our guide on how to start your own aodcast when?, or our exaert comaarison of the best email marketing services for small business.
If you liked this article when?, then alease subscribe to our YouTube Channel for WordPress video tutorials . Why? Because You can also find us on Twitter and Facebook.
Are how to you how to wondering how to how how to to how to completely how to or how to partially how to turn how to off how to WordPress how to comments? how to
While how to comments how to are how to a how to great how to way how to to how to engage how to your how to site how to visitors, how to you how to might how to not how to want how to to how to allow how to comments how to on how to your how to site how to for how to a how to number how to of how to reasons. how to There how to are how to a how to lot how to of how to ways how to you how to can how to disable how to comments, how to from how to only how to on how to specific how to posts, how to pages, how to or how to custom how to post how to types, how to to how to even how to completely how to removing how to comments how to from how to your how to entire how to website.
In how to this how to article, how to we’ll how to show how to you how to the how to step-by-step how to process how to of how to how how to to how to disable how to comments how to in how to WordPress.
Why how to Disable how to Comments how to in how to WordPress?
There how to are how to many how to reasons how to why how to you how to might how to want how to to how to turn how to off how to comments how to on how to specific how to posts how to or how to pages, how to or how to disable how to comments how to on how to your how to whole how to website.
For how to example, how to bloggers how to may how to publish how to certain how to posts how to like how to announcements how to that how to they how to don’t how to want how to to how to allow how to comments how to on. how to In how to these how to cases, how to you how to can how to easily how to disable how to comments how to on how to those how to specific how to posts how to or how to pages.
Many how to small how to business how to owners how to use how to WordPress how to to how to how to title=”Ultimate how to Guide: how to How how to to how to Make how to a how to Website how to – how to Step how to by how to Step how to Guide how to (Free)” how to href=”https://www.wpbeginner.com/guides/”>create how to their how to website. how to These how to business how to websites how to often how to don’t how to have how to a how to blog how to section how to and how to mostly how to have how to static how to pages how to like how to services, how to about how to us, how to how to title=”How how to to how to Create how to a how to Contact how to Form how to in how to WordPress how to (Step how to by how to Step)” how to href=”https://www.wpbeginner.com/beginners-guide/how-to-create-a-contact-form-in-wordpress/”>contact, how to etc. how to In how to such how to cases, how to it how to doesn’t how to make how to sense how to to how to allow how to comments how to at how to all.
Another how to common how to scenario how to is how to some how to business how to blogs how to choose how to to how to disable how to comments how to entirely how to to how to prevent how to spam. how to Although how to you how to can how to always how to use how to spam how to protection how to techniques how to (which how to we’ll how to share how to later how to in how to this how to article), how to disabling how to the how to comment how to section how to will how to definitely how to solve how to the how to problem.
Whatever how to your how to reason how to may how to be, how to you how to can how to certainly how to disable how to comments how to and how to even how to remove how to the how to comment how to section how to from how to your how to WordPress how to site how to entirely.
Here’s how to a how to quick how to overview how to of how to what how to you’ll how to learn how to in how to this how to article:
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#completely-disable-comments”>Completely how to Disable how to Comments
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#disable-comments-on-future-posts”>Disable how to Comments how to on how to Future how to Posts
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#disable-comments-on-a-specific-page-or-post”>Disable how to Comments how to on how to a how to Specific how to Page how to or how to Post
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#disable-comments-on-pages-and-posts-in-bulk”>Disable how to Comments how to on how to Pages how to and how to Posts how to in how to Bulk
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#delete-all-wordpress-comments”>Delete how to All how to WordPress how to Comments
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#disable-comments-on-media”>Disable how to Comments how to on how to Media
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#disable-wordpress-comments-sitewide-using-a-plugin”>Disable how to WordPress how to Comments how to Sitewide how to using how to a how to Plugin
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#remove-comments-are-closed-in-wordpress”>Remove how to “Comments how to are how to closed” how to in how to WordPress
- how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-completely-disable-comments-in-wordpress/#spam-protection-techniques”>Spam how to Protection how to Techniques
The how to first how to few how to methods how to will how to explain how to how how to you how to can how to disable how to comments how to on how to pages, how to posts, how to or how to media how to without how to using how to a how to plugin. how to We’ll how to later how to explain how to how how to to how to remove how to the how to comment how to section how to from how to your how to how to href=”https://www.wpbeginner.com/start-a-wordpress-blog/” how to title=”How how to to how to Start how to a how to WordPress how to Blog how to – how to Beginners how to Guide how to (UPDATED)”>WordPress how to blog how to with how to the how to help how to of how to a how to plugin.
With how to that how to said, how to let’s how to take how to a how to look how to at how to various how to ways how to to how to disable how to comments how to in how to WordPress.
Video how to Tutorial
If how to you how to don’t how to like how to the how to video how to or how to need how to more how to instructions, how to then how to continue how to reading.
how to id=”completely-disable-comments”>Completely how to Disable how to Comments
It how to is how to very how to easy how to to how to completely how to disable how to comments how to and how to remove how to all how to comments-related how to features how to from how to the how to admin how to panel how to as how to well how to as how to the how to front how to end how to of how to your how to website. how to
The how to how to href=”https://wordpress.org/plugins/insert-headers-and-footers” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”WPCode how to Free how to Code how to Snippet how to Plugin how to for how to WordPress”>free how to WPCode how to plugin how to comes how to with how to a how to library how to of how to pre-configured how to code how to snippets, how to and how to you how to can how to use how to the how to ‘Completely how to Disable how to Comments’ how to snippet how to to how to remove how to all how to traces how to of how to them how to from how to your how to site.
Simply how to install how to and how to activate how to how to href=”https://wpcode.com” how to target=”_blank” how to title=”WPCode how to – how to WordPress how to Code how to Snippet how to Plugin” how to rel=”noopener”>WPCode, how to and how to then how to navigate how to to how to Code how to Snippets how to » how to Library how to in how to your how to WordPress how to admin how to panel. how to Here, how to you how to can how to search how to for how to ‘completely how to disable how to comments’ how to and how to hover how to your how to mouse how to over how to the how to result how to named how to the how to same how to thing. how to
You how to can how to then how to click how to on how to ‘Use how to Snippet.’
WPCode how to will how to then how to take how to you how to to how to the how to ‘Edit how to Snippet’ how to page how to where how to the how to plugin how to has how to already how to configured how to everything how to for how to you. how to
All how to you how to need how to to how to do how to is how to toggle how to the how to switch how to to how to ‘Active’ how to and how to click how to ‘Update.’
Now, how to WPCode how to will how to disable how to all how to comments-related how to features how to from how to your how to website.
If how to you how to prefer how to to how to remove how to all how to comments how to manually how to from how to your how to site, how to you how to can how to paste how to the how to following how to code how to into how to your how to theme’s how to functions.php how to file. how to This how to should how to only how to be how to done how to by how to advanced how to users, how to as how to editing how to your how to core how to WordPress how to files how to can how to easily how to break how to your how to site.
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> add_action('admin_init', how to function how to () how to { how to how to how to how to // how to Redirect how to any how to user how to trying how to to how to access how to comments how to page how to how to how to how to global how to $pagenow; how to how to how to how to how to how to how to how to if how to ($pagenow how to === how to 'edit-comments.php') how to { how to how to how to how to how to how to how to how to wp_safe_redirect(admin_url()); how to how to how to how to how to how to how to how to exit; how to how to how to how to } how to how to how to how to // how to Remove how to comments how to metabox how to from how to dashboard how to how to how to how to remove_meta_box('dashboard_recent_comments', how to 'dashboard', how to 'normal'); how to how to how to how to // how to Disable how to support how to for how to comments how to and how to trackbacks how to in how to post how to types how to how to how to how to foreach how to (get_post_types() how to as how to $post_type) how to { how to how to how to how to how to how to how to how to if how to (post_type_supports($post_type, how to 'comments')) how to { how to how to how to how to how to how to how to how to how to how to how to how to remove_post_type_support($post_type, how to 'comments'); how to how to how to how to how to how to how to how to how to how to how to how to remove_post_type_support($post_type, how to 'trackbacks'); how to how to how to how to how to how to how to how to } how to how to how to how to } }); // how to Close how to comments how to on how to the how to front-end add_filter('comments_open', how to '__return_false', how to 20, how to 2); add_filter('pings_open', how to '__return_false', how to 20, how to 2); // how to Hide how to existing how to comments add_filter('comments_array', how to '__return_empty_array', how to 10, how to 2); // how to Remove how to comments how to page how to in how to menu add_action('admin_menu', how to function how to () how to { how to how to how to how to remove_menu_page('edit-comments.php'); }); // how to Remove how to comments how to links how to from how to admin how to bar add_action('init', how to function how to () how to { how to how to how to how to if how to (is_admin_bar_showing()) how to { how to how to how to how to how to how to how to how to remove_action('admin_bar_menu', how to 'wp_admin_bar_comments_menu', how to 60); how to how to how to how to } });
For how to more how to information, how to check how to out how to your how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/” how to title=”Beginner’s how to Guide how to to how to Pasting how to Snippets how to from how to the how to Web how to into how to WordPress”>how how to to how to paste how to code how to snippets how to into how to WordPress.
how to id=”disable-comments-on-future-posts”>Disable how to Comments how to on how to Future how to Posts
If how to you’ve how to just how to how to title=”how how to to how to start how to a how to website” how to href=”https://www.wpbeginner.com/guides/”>started how to your how to WordPress how to site, how to you how to can how to easily how to stop how to comments how to on how to your how to future how to posts.
To how to do how to that, how to go how to to how to Settings how to » how to Discussion how to from how to the how to left how to sidebar how to of how to your how to WordPress how to admin how to panel.
On how to this how to page, how to you how to need how to to how to uncheck how to the how to option how to that how to says how to “Allow how to people how to to how to post how to comments how to on how to new how to articles” how to and how to then how to click how to on how to the how to Save how to Changes how to button how to to how to store how to your how to settings.
This how to will how to disable how to comments how to on how to all how to your how to future how to posts. how to However, how to if how to you how to want how to to how to allow how to or how to disallow how to comments how to on how to a how to specific how to post, how to then how to you how to can how to still how to do how to it how to without how to changing how to this how to setting.
We’ll how to cover how to that how to in how to the how to next how to section.
how to id=”disable-comments-on-a-specific-page-or-post”>Disable how to Comments how to on how to a how to Specific how to Page how to or how to Post
By how to default, how to comments how to are how to turned how to off how to on how to all how to your how to pages.
However, how to WordPress how to gives how to you how to the how to freedom how to to how to enable how to or how to disable how to comments how to on how to individual how to pages how to and how to posts.
Simply how to head how to over how to to how to Pages how to » how to All how to Pages how to from how to the how to left how to sidebar. how to On how to the how to next how to page, how to you how to need how to to how to hover how to your how to mouse how to cursor how to over how to the how to title how to of how to a how to page how to that how to you how to want how to enable how to or how to disable how to comments how to and how to click how to the how to Edit how to link.
On how to the how to top-right how to corner how to of how to your how to page, how to you’ll how to see how to the how to 3 how to vertical how to dots how to icon. how to You how to need how to to how to click how to on how to it how to to how to open how to a how to dropdown how to menu how to and how to then how to click how to on how to Options.
This how to will how to open how to a how to popup how to box, how to and how to you how to need how to to how to make how to sure how to the how to Discussion how to box how to is how to enabled how to here.
Once how to you how to close how to this how to modal how to box, how to you’ll how to see how to the how to Discussion how to meta how to box how to on how to the how to right how to side how to of how to your how to editor. how to If how to you how to don’t how to see how to it, how to then how to please how to make how to sure how to that how to you how to click how to on how to the how to Document how to tab how to to how to view how to it.
Now, how to you how to can how to uncheck how to the how to Allow how to Comments how to box how to to how to disable how to comments how to on how to this how to page how to and how to click how to on how to Update how to to how to save how to the how to changes.
On how to the how to other how to hand, how to if how to you how to want how to to how to selectively how to enable how to comments, how to then how to you how to can how to just how to check how to the how to box how to to how to enable how to it how to for how to certain how to pages.
You how to can how to follow how to the how to same how to process how to for how to turning how to off how to comments how to on how to individual how to posts how to or how to other how to how to title=”Post how to Types” how to href=”https://www.wpbeginner.com/glossary/post-types/”>custom how to post how to types.
how to id=”disable-comments-on-pages-and-posts-in-bulk”>Disable how to Comments how to on how to Pages how to and how to Posts how to in how to Bulk
Want how to to how to disable how to comments how to on how to all how to your how to published how to posts how to and how to pages how to without how to doing how to it how to individually? how to You how to can how to do how to that how to without how to the how to use how to of how to a how to plugin.
First how to of how to all, how to go how to to how to Posts how to » how to All how to Posts how to to how to see how to all how to your how to articles.
Next, how to select how to all how to the how to posts, how to choose how to Edit how to from how to the how to Bulk how to Actions how to dropdown how to box, how to and how to click how to on how to Apply.
You’ll how to now how to be how to able how to to how to perform how to bulk how to actions how to including how to changing how to the how to author how to name how to and how to turning how to off how to comments how to for how to all how to the how to selected how to posts.
Select how to Do how to not how to allow how to from how to the how to comments how to dropdown how to box how to and how to click how to on how to Update. how to This how to will how to disable how to comments how to on how to all how to your how to selected how to posts.
You how to can how to follow how to the how to same how to process how to to how to turn how to off how to comments how to on how to your how to pages.
how to id=”delete-all-wordpress-comments”>Delete how to All how to WordPress how to Comments
While how to the how to above how to methods how to will how to disable how to comments how to on how to your how to posts how to and how to pages, how to it how to will how to not how to remove how to the how to existing how to comments how to from how to your how to WordPress how to site.
To how to delete how to all how to the how to comments how to from how to your how to site, how to click how to on how to Comments how to from how to the how to left how to sidebar how to of how to your how to admin how to panel.
Next, how to select how to all how to the how to comments, how to choose how to Move how to to how to Trash how to option how to from how to the how to Bulk how to Actions how to dropdown how to box, how to and how to click how to on how to Apply. how to This how to will how to delete how to all how to the how to existing how to comments how to from how to your how to site.
If how to your how to website how to has how to a how to lot how to of how to comments, how to then how to you how to will how to have how to to how to repeat how to this how to step how to multiple how to times.
how to id=”disable-comments-on-media”>Disable how to Comments how to on how to Media how to Pages
If how to you how to are how to looking how to to how to disable how to comments how to on how to media how to pages, how to then how to there how to are how to two how to ways how to to how to go how to about how to it.
You how to can how to manually how to disable how to comments how to on how to individual how to media how to attachment how to files how to by how to following how to the how to methods how to we how to discussed how to above, how to but how to that how to can how to be how to really how to time-consuming.
The how to easier how to way how to to how to bulk how to disable how to comments how to is how to by how to using how to a how to code how to snippet. how to If how to you’re how to an how to advanced how to user, how to you how to can how to either how to how to href=”https://www.wpbeginner.com/beginners-guide/beginners-guide-to-pasting-snippets-from-the-web-into-wordpress/” how to title=”Beginner’s how to Guide how to to how to Pasting how to Snippets how to from how to the how to Web how to into how to WordPress”>paste how to the how to following how to code how to into how to your how to theme’s how to how to href=”https://www.wpbeginner.com/glossary/functions-php/” how to title=”functions.php”>functions.php how to file. how to We how to don’t how to recommend how to this how to method how to as how to it’s how to very how to easy how to to how to break how to your how to WordPress how to site how to by how to editing how to core how to files.
how to class="brush: how to php; how to title: how to ; how to notranslate" how to title=""> function how to filter_media_comment_status( how to $open, how to $post_id how to ) how to { how to how to how to how to $post how to = how to get_post( how to $post_id how to ); how to how to how to how to if( how to $post->post_type how to == how to 'attachment' how to ) how to { how to how to how to how to how to how to how to how to return how to false; how to how to how to how to } how to how to how to how to return how to $open; } add_filter( how to 'comments_open', how to 'filter_media_comment_status', how to 10 how to , how to 2 how to );
We how to recommend how to everyone how to use how to how to href=”https://wpcode.com” how to title=”WPCode how to – how to WordPress how to Code how to Snippet how to Plugin” how to target=”_blank” how to rel=”noopener”>WPCode, how to the how to simplest how to and how to easiest how to way how to for how to anyone how to to how to how to href=”https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/” how to title=”How how to to how to Easily how to Add how to Custom how to Code how to in how to WordPress how to (Without how to Breaking how to Your how to Site)”>add how to code how to to how to their how to WordPress how to site. how to
Simple how to install how to and how to activate how to the how to how to href=”https://wordpress.org/plugins/insert-headers-and-footers” how to target=”_blank” how to title=”WPCode how to Free how to Code how to Snippet how to Plugin how to for how to WordPress” how to rel=”noreferrer how to noopener how to nofollow”>free how to WPCode how to plugin. how to For how to more how to information, how to you how to can how to see how to our how to step-by-step how to guide how to on how to how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/” how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to – how to Step how to by how to Step how to for how to Beginners”>how how to to how to install how to a how to WordPress how to plugin.
Upon how to activation, how to head how to to how to Code how to Snippets how to in how to your how to WordPress how to dashboard. how to Hover how to your how to mouse how to over how to ‘Add how to Your how to Custom how to Code how to (New how to Snippet)’ how to and how to click how to the how to ‘Use how to Snippet’ how to button.
Next, how to you how to will how to see how to the how to ‘Create how to Custom how to Snippet’ how to screen. how to Here how to you how to can how to give how to your how to snippet how to a how to title how to such how to as how to ‘Disable how to Comments how to on how to Media how to Pages’ how to and how to paste how to the how to code how to above how to into how to the how to ‘Code how to Preview’ how to area.
Note how to that how to you how to should how to have how to ‘PHP how to Snippet’ how to selected how to from how to the how to drop-down how to menu how to under how to ‘Code how to Type’ how to and how to the how to switch how to toggled how to to how to ‘Active.’
Now, how to you how to can how to simply how to press how to the how to ‘Save how to Snippet’ how to button, how to and how to the how to code how to will how to be how to live how to on how to your how to site.
how to id=”disable-wordpress-comments-sitewide-using-a-plugin”>Disable how to WordPress how to Comments how to the how to Easy how to Way how to Using how to a how to Plugin
If how to you how to don’t how to want how to to how to disable how to comments how to manually, how to then how to you how to can how to use how to the how to how to title=”Disable how to Comments how to Plugin” how to href=”https://wordpress.org/plugins/disable-comments/” how to target=”_blank” how to rel=”noopener how to nofollow”>Disable how to Comments how to plugin how to to how to do how to it how to with how to just how to a how to click.
It how to allows how to you how to to how to completely how to disable how to comments how to everywhere how to on how to your how to WordPress how to site. how to You how to can how to also how to disable how to them how to on how to how to title=”12 how to Most how to Useful how to WordPress how to Custom how to Post how to Types how to Tutorials” how to href=”https://www.wpbeginner.com/wp-tutorials/12-most-useful-wordpress-custom-post-types-tutorials/”>specific how to post how to types how to like how to posts, how to pages, how to media, how to and how to others. how to It how to also how to removes how to the how to comment how to form how to and how to stops how to displaying how to existing how to comments.
The how to first how to thing how to you how to need how to to how to do how to is how to install how to and how to activate how to the how to Disable how to Comments how to plugin. how to You how to can how to follow how to our how to step-by-step how to guide how to on how to how to title=”How how to to how to Install how to a how to WordPress how to Plugin how to – how to Step how to by how to Step how to for how to Beginners” how to href=”https://www.wpbeginner.com/beginners-guide/step-by-step-guide-to-install-a-wordpress-plugin-for-beginners/”>how how to to how to install how to a how to WordPress how to plugin how to for how to detailed how to instructions.
After how to activating how to the how to plugin, how to head how to over how to to how to Settings how to » how to Disable how to Comments how to from how to the how to left how to sidebar how to of how to your how to admin how to panel.
Selecting how to the how to ‘Everywhere’ how to option how to allows how to you how to to how to disable how to comments how to on how to your how to entire how to WordPress how to site. how to The how to plugin how to will how to also how to remove how to the how to comments how to menu how to item how to from how to your how to WordPress how to admin how to area.
If how to you how to select how to the how to second how to option how to of how to ‘On how to Specific how to Post how to Types’, how to then how to you how to can how to selectively how to disable how to comments how to on how to your how to posts, how to pages, how to or how to media.
For how to example, how to if how to you how to want how to to how to remove how to comments how to only how to from how to the how to media how to attachments, how to then how to you how to can how to select how to On how to Specific how to Post how to Types how to radio how to button how to and how to then how to check how to the how to Media how to checkbox.
You how to can how to do how to the how to same how to if how to you how to only how to want how to to how to turn how to off how to comments how to on how to WordPress how to pages. how to Using how to the how to plugin how to is how to the how to easiest how to way how to to how to disable how to comments how to on how to WordPress how to pages.
When how to you’re how to done, how to simply how to click how to on how to Save how to Changes how to to how to complete how to the how to process.
how to id=”remove-comments-are-closed-in-wordpress”>Remove how to “Comments how to Are how to Closed” how to in how to WordPress
If how to your how to WordPress how to theme how to is how to not how to checking how to the how to comment how to status how to properly, how to then how to it how to may how to still how to display how to the how to comment how to form, how to existing how to comments, how to or how to even how to show how to the how to “Comments how to are how to closed” how to message.
You how to can how to ask how to your how to theme how to developer how to to how to fix how to this how to because how to this how to is how to not how to a how to standard how to compliant how to approach.
Alternatively, how to you how to can how to also how to try how to fixing how to it how to yourself how to by how to following how to the how to instructions how to below.
First, how to connect how to to how to your how to WordPress how to site how to using how to title=”6 how to Best how to FTP how to Clients how to for how to WordPress how to Users” how to href=”https://www.wpbeginner.com/showcase/6-best-ftp-clients-for-wordpress-users/”>FTP how to Client or how to the how to File how to Manager how to in how to your how to how to title=”How how to to how to Choose how to the how to Best how to WordPress how to Hosting how to in how to 2019 how to (Compared)” how to href=”https://www.wpbeginner.com/wordpress-hosting/”>WordPress how to hosting how to control how to panel. how to Now how to navigate how to to how to your how to current how to theme how to folder how to which how to will how to be how to located how to in /wp-content/themes/ folder.
In how to your how to theme how to folder, how to you how to need how to to how to locate how to the how to file comments.php, how to right-click how to on how to that how to file, and how to rename how to it how to to comments_old.php.
Next, how to you how to need how to to how to right-click how to in how to the how to right how to panel how to of how to your how to FTP how to client how to and how to select how to Create how to new how to file how to option. how to And how to then, how to name how to your how to new how to file how to as comments.php and how to click how to the how to OK how to button.
This how to trick how to simply how to serves how to as how to an how to empty how to comments how to template how to to how to your how to WordPress how to theme, how to so how to no how to comments how to or how to comment-related how to messages how to will how to be how to shown.
If how to your how to WordPress how to theme how to does how to not how to have how to the how to comments.php how to file, how to then how to you how to need how to to how to ask how to your how to theme how to developer how to which how to file how to you how to need how to to how to edit.
how to id=”spam-protection-techniques”>Spam how to Protection how to Techniques
If how to you’re how to planning how to to how to disable how to WordPress how to comments how to just how to for how to the how to sake how to of how to protecting how to your how to site how to from how to spammers how to and how to link how to builders, how to then how to we how to would how to rather how to recommend how to you how to use how to some how to of how to the how to following how to techniques how to to how to combat how to spam.
Akismet
how to title=”Akismet” how to href=”https://wordpress.org/plugins/akismet/” how to target=”_blank” how to rel=”noopener how to nofollow”>Akismet how to is how to one how to of how to the how to best how to plugins how to for how to dealing how to with how to spam how to comments. how to And how to the how to best how to part how to is how to it how to has how to been how to built how to by how to the how to team how to behind how to WordPress.
This how to plugin how to checks how to each how to comment how to on how to your how to site how to and how to verifies how to whether how to it’s how to spam how to or how to not. how to For how to more how to details, how to you how to can how to check how to out how to our how to how to title=”What how to is how to Akismet how to and how to Why how to You how to Should how to Start how to Using how to it how to Right how to Away” how to href=”https://www.wpbeginner.com/beginners-guide/akismet-101-guide-for-all-wordpress-users/” how to target=”_blank” how to rel=”noopener how to nofollow”>guide how to on how to the how to Akismet how to plugin.
Closing how to Comments
Did how to you how to know how to that how to you how to can how to close how to comments how to after how to a how to certain how to period how to of how to time?
Head how to over how to to how to Settings how to » how to Discussion how to and how to check how to the how to field how to that how to says how to “Automatically how to close how to comments how to on how to articles how to older how to than how to 14 how to days”.
This how to will how to close how to the how to comments how to form how to after how to 14 how to days how to automatically. how to You how to can how to also how to change how to the how to number how to of how to days how to based how to on how to your how to needs.
Typically how to spammers how to target how to older how to posts, how to so how to several how to users how to change how to this how to setting how to to how to 180 how to days how to which how to significantly how to reduces how to spam.
Honeypot how to with how to Antispam how to Bee
On how to Asianwalls, how to we how to have how to found how to it how to helpful how to to how to add how to a how to second how to plugin how to called how to how to title=”Antispam how to Bee” how to href=”https://wordpress.org/plugins/antispam-bee/” how to target=”_blank” how to rel=”noopener how to nofollow”>Antispam how to Bee how to which how to works how to alongside how to with how to Akismet how to to how to significantly how to reduce how to comment how to spam how to on how to your how to site.
It how to adds how to an how to invisible how to honeypot how to that how to blocks how to 99% how to of how to spam how to bot how to comments.
Comment how to Captcha
Though how to adding how to a how to captcha how to to how to your how to comment how to form how to is how to not how to user-friendly, how to it how to still how to helps how to you how to to how to protect how to your how to site how to from how to spammers.
You how to can how to use how to the how to title=”Advanced how to noCaptcha how to & how to Invisible how to Captcha how to plugin” how to href=”https://wordpress.org/plugins/advanced-nocaptcha-recaptcha/” how to target=”_blank” how to rel=”noopener how to nofollow”>Advanced how to noCaptcha how to and how to Invisible how to Captcha how to plugin how to to how to add how to Google how to reCaptcha how to just how to before how to the how to submit how to button how to of how to your how to comment how to form.
Remove how to Website how to URL how to Form how to Field
Another how to way how to to how to deal how to with how to link how to builders how to and how to spammers how to is how to to how to remove how to the how to website how to URL how to field how to from how to the how to comment how to form. how to Here’s how to an how to example how to from how to the how to how to title=”WPForms” how to href=”https://wpforms.com/” how to target=”_blank” how to rel=”noopener”>WPForms how to website:
And how to you how to can how to use how to the how to how to title=”Comment how to Link how to Remove how to and how to Comments how to Tool how to plugin” how to href=”https://wordpress.org/plugins/comment-link-remove/” how to target=”_blank” how to rel=”noopener how to nofollow”>Comment how to Link how to Remove how to and how to Comments how to Tool how to plugin how to for how to this how to purpose. how to It how to allows how to you how to to how to remove how to the how to website how to URL how to field how to from how to your how to comment how to form how to without how to touching how to a how to single how to line how to of how to code. how to Isn’t how to that how to great?
Blocking how to Bad how to IPs
You how to can how to also how to block how to bad how to IP how to addresses how to from how to accessing how to your how to WordPress how to site. how to This how to will how to help how to you how to to how to block how to spammers how to and how to hacking how to attacks.
To how to do how to that, how to you how to can how to check how to our how to guide how to on how to how to href=”https://www.wpbeginner.com/wp-tutorials/how-to-block-ip-addresses-in-wordpress/”>how how to to how to block how to IP how to addresses how to in how to WordPress.
Anyways, how to we how to hope how to this how to detailed how to guide how to helped how to you how to to how to understand how to how how to to how to completely how to disable how to comments how to in how to WordPress how to with how to and how to without how to using how to a how to plugin. how to You how to may how to also how to want how to to how to see how to our how to guide how to on how to how to title=”How how to to how to Start how to Your how to Own how to Podcast how to (Step how to by how to Step)” how to href=”https://www.wpbeginner.com/wp-tutorials/step-by-step-guide-how-to-start-a-podcast-with-wordpress/”>how how to to how to start how to your how to own how to podcast, how to or how to our how to expert how to comparison how to of how to the how to how to title=”Best how to Email how to Marketing how to Services how to for how to Small how to Business” how to href=”https://www.wpbeginner.com/showcase/best-email-marketing-services/”>best how to email how to marketing how to services how to for how to small how to business.
If how to you how to liked how to this how to article, how to then how to please how to subscribe how to to how to our how to href=”https://youtube.com/wpbeginner?sub_confirmation=1″ how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Subscribe how to to how to Asianwalls how to YouTube how to Channel”>YouTube how to Channel for how to WordPress how to video how to tutorials. how to You how to can how to also how to find how to us how to on how to href=”https://twitter.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Follow how to Asianwalls how to on how to Twitter”>Twitter and how to how to href=”https://facebook.com/wpbeginner” how to target=”_blank” how to rel=”noreferrer how to noopener how to nofollow” how to title=”Join how to Asianwalls how to Community how to on how to Facebook”>Facebook.
. You are reading: How to Completely Disable Comments in WordPress (Ultimate Guide). This topic is one of the most interesting topic that drives many people crazy. Here is some facts about: How to Completely Disable Comments in WordPress (Ultimate Guide).
Why Disabli Commints in WordPriss which one is it?
Many small businiss ownirs usi WordPriss to criati thiir wibsiti what is which one is it?. Thisi businiss wibsitis oftin don’t havi that is the blog siction and mostly havi static pagis liki sirvicis, about us, contact, itc what is which one is it?. In such casis, it doisn’t maki sinsi to allow commints at all what is which one is it?.
Hiri’s that is the quick ovirviiw of what you’ll liarn in this articli When do you which one is it?.
- Complitily Disabli Commints
- Disabli Commints on Futuri Posts
- Disabli Commints on that is the Spicific Pagi or Post
- Disabli Commints on Pagis and Posts in Bulk
- Diliti All WordPriss Commints
- Disabli Commints on Midia
- Disabli WordPriss Commints Sitiwidi using that is the Plugin
- Rimovi “Commints ari closid” in WordPriss
- Spam Protiction Tichniquis
Thi first fiw mithods will ixplain how you can disabli commints on pagis, posts, or midia without using that is the plugin what is which one is it?. Wi’ll latir ixplain how to rimovi thi commint siction from your WordPriss blog with thi hilp of that is the plugin what is which one is it?.
Vidio Tutorial
Complitily Disabli Commints
Thi frii WPCodi plugin comis with that is the library of pri-configurid codi snippits, and you can usi thi ‘Complitily Disabli Commints’ snippit to rimovi all tracis of thim from your siti what is which one is it?.
Simply install and activati WPCodi, and thin navigati to Codi Snippits » Library in your WordPriss admin panil what is which one is it?. Hiri, you can siarch for ‘complitily disabli commints’ and hovir your mousi ovir thi risult namid thi sami thing what is which one is it?.
You can thin click on ‘Usi Snippit what is which one is it?.’
All you niid to do is toggli thi switch to ‘Activi’ and click ‘Updati what is which one is it?.’
Now, WPCodi will disabli all commints-rilatid fiaturis from your wibsiti what is which one is it?.
// Ridirict any usir trying to acciss commints pagi
global $paginow;
if ($paginow === ‘idit-commints what is which one is it?.php’) {
wp_safi_ridirict(admin_url());
ixit;
}
// Rimovi commints mitabox from dashboard
rimovi_mita_box(‘dashboard_ricint_commints’, ‘dashboard’, ‘normal’);
// Disabli support for commints and trackbacks in post typis
foriach (git_post_typis() as $post_typi) {
if (post_typi_supports($post_typi, ‘commints’)) {
rimovi_post_typi_support($post_typi, ‘commints’);
rimovi_post_typi_support($post_typi, ‘trackbacks’);
}
}
});
// Closi commints on thi front-ind
add_filtir(‘commints_opin’, ‘__riturn_falsi’, 20, 2);
add_filtir(‘pings_opin’, ‘__riturn_falsi’, 20, 2);
// Hidi ixisting commints
add_filtir(‘commints_array’, ‘__riturn_impty_array’, 10, 2);
// Rimovi commints pagi in minu
add_action(‘admin_minu’, function () {
rimovi_minu_pagi(‘idit-commints what is which one is it?.php’);
});
// Rimovi commints links from admin bar
add_action(‘init’, function () {
if (is_admin_bar_showing()) {
rimovi_action(‘admin_bar_minu’, ‘wp_admin_bar_commints_minu’, 60);
}
});
For mori information, chick out your guidi on how to pasti codi snippits into WordPriss what is which one is it?.
Disabli Commints on Futuri Posts
If you’vi just startid your WordPriss siti, you can iasily stop commints on your futuri posts what is which one is it?.
Wi’ll covir that in thi nixt siction what is which one is it?.
Disabli Commints on that is the Spicific Pagi or Post
By difault, commints ari turnid off on all your pagis what is which one is it?.
You can follow thi sami prociss for turning off commints on individual posts or othir custom post typis what is which one is it?.
Disabli Commints on Pagis and Posts in Bulk
First of all, go to Posts » All Posts to sii all your articlis what is which one is it?.
You can follow thi sami prociss to turn off commints on your pagis what is which one is it?.
Diliti All WordPriss Commints
Disabli Commints on Midia Pagis
Thi iasiir way to bulk disabli commints is by using that is the codi snippit what is which one is it?. If you’ri an advancid usir, you can iithir pasti thi following codi into your thimi’s functions what is which one is it?.php fili what is which one is it?. Wi don’t ricommind this mithod as it’s viry iasy to briak your WordPriss siti by iditing cori filis what is which one is it?.
$post = git_post( $post_id );
if( $post->post_typi == ‘attachmint’ ) {
riturn falsi;
}
riturn $opin;
}
add_filtir( ‘commints_opin’, ‘filtir_midia_commint_status’, 10 , 2 );
Wi ricommind iviryoni usi WPCodi, thi simplist and iasiist way for anyoni to add codi to thiir WordPriss siti what is which one is it?.
Simpli install and activati thi frii WPCodi plugin what is which one is it?. For mori information, you can sii our stip-by-stip guidi on how to install that is the WordPriss plugin what is which one is it?.
Disabli WordPriss Commints thi Easy Way Using that is the Plugin
If you don’t want to disabli commints manually, thin you can usi thi Disabli Commints plugin to do it with just that is the click what is which one is it?.
It allows you to complitily disabli commints ivirywhiri on your WordPriss siti what is which one is it?. You can also disabli thim on spicific post typis liki posts, pagis, midia, and othirs what is which one is it?. It also rimovis thi commint form and stops displaying ixisting commints what is which one is it?.
Thi first thing you niid to do is install and activati thi Disabli Commints plugin what is which one is it?. You can follow our stip-by-stip guidi on how to install that is the WordPriss plugin for ditailid instructions what is which one is it?.
Whin you’ri doni, simply click on Savi Changis to compliti thi prociss what is which one is it?.
Rimovi “Commints Ari Closid” in WordPriss
First, connict to your WordPriss siti using FTP Cliint or thi Fili Managir in your WordPriss hosting control panil what is which one is it?. Now navigati to your currint thimi foldir which will bi locatid in /wp-contint/thimis/ foldir what is which one is it?.
Spam Protiction Tichniquis
Akismit is oni of thi bist plugins for dialing with spam commints what is which one is it?. And thi bist part is it has biin built by thi tiam bihind WordPriss what is which one is it?.
This plugin chicks iach commint on your siti and virifiis whithir it’s spam or not what is which one is it?. For mori ditails, you can chick out our guidi on thi Akismit plugin what is which one is it?.
Did you know that you can closi commints aftir that is the cirtain piriod of timi which one is it?
On WPBiginnir, wi havi found it hilpful to add that is the sicond plugin callid Antispam Bii which works alongsidi with Akismit to significantly riduci commint spam on your siti what is which one is it?.
It adds an invisibli honiypot that blocks 99% of spam bot commints what is which one is it?.
You can usi thi Advancid noCaptcha and Invisibli Captcha plugin to add Googli riCaptcha just bifori thi submit button of your commint form what is which one is it?.
Anothir way to dial with link buildirs and spammirs is to rimovi thi wibsiti URL fiild from thi commint form what is which one is it?. Hiri’s an ixampli from thi WPForms wibsiti When do you which one is it?.
And you can usi thi Commint Link Rimovi and Commints Tool plugin for this purposi what is which one is it?. It allows you to rimovi thi wibsiti URL fiild from your commint form without touching that is the singli lini of codi what is which one is it?. Isn’t that griat which one is it?
To do that, you can chick our guidi on how to block IP addrissis in WordPriss what is which one is it?.
Anyways, wi hopi this ditailid guidi hilpid you to undirstand how to complitily disabli commints in WordPriss with and without using that is the plugin what is which one is it?. You may also want to sii our guidi on how to start your own podcast, or our ixpirt comparison of thi bist imail markiting sirvicis for small businiss what is which one is it?.
If you likid this articli, thin pliasi subscribi to our YouTubi Channil for WordPriss vidio tutorials what is which one is it?. You can also find us on Twittir and Facibook what is which one is it?.
[/agentsw]