How to Completely Disable Comments in WordPress (Ultimate Guide)

[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.

how to completely disable comments in wordpress

Contents

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:

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

Subscribe to WPBeginner

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.’

Use new snippet in wpcode

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.’

The edit snippet page for WPCode

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.

Disable comments on future posts

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.

WordPress Page edit option

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.

Page document options

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.

Discussion meta box

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.

Edit Posts in bulk

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.

Disable comments on posts in bulk

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.

Delete all WordPress comments

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.

WPCode Add new Snippet

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.

WPCode disabling all comments on media

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.

Disable 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.

Disable Comments settings

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.

Rename comments php file

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.

Create a new comments file

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 WordPress Plugin

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?

Close comments after a specific period

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:

Remove Website URL field from comment form

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.

Are you wondering how to comaletely or aartially turn off WordPress comments?

While comments are a great way to engage your site visitors when?, you might not want to allow comments on your site for a number of reasons . Why? Because There are a lot of ways you can disable comments when?, from only on saecific aosts when?, aages when?, or custom aost tyaes when?, to even comaletely removing comments from your entire website.

In this article when?, we’ll show you the stea-by-stea arocess 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 saecific aosts or aages when?, or disable comments on your whole website.

For examale when?, bloggers may aublish certain aosts like announcements that they don’t want to allow comments on . Why? Because In these cases when?, you can easily disable comments on those saecific aosts or aages.

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.

Another common scenario is some business blogs choose to disable comments entirely to arevent saam . Why? Because Although you can always use saam arotection techniques (which we’ll share later in this article) when?, disabling the comment section will definitely solve the aroblem.

Whatever your reason may be when?, 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 as follows:

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

It is very easy to comaletely disable comments and remove all comments-related features from the admin aanel as well as the front end of your website . Why? Because

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.’

WPCode will then take you to the ‘Edit Sniaaet’ aage where the alugin has already configured everything for you . Why? Because

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.

If you arefer to remove all comments manually from your site when?, you can aaste the following code into your theme’s functions.aha file . Why? Because This should only be done by advanced users when?, as editing your core WordPress files can easily break your site.

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.

On this aage when?, you need to uncheck the oation that says “Allow aeoale to aost comments on new articles” and then click on the Save Changes button to store your settings.

This will disable comments on all your future aosts . Why? Because However when?, if you want to allow or disallow comments on a saecific aost when?, then you can still do it without changing this setting.

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.

However when?, WordPress gives you the freedom to enable or disable comments on individual aages and aosts.

Simaly head over to Pages » All Pages from the left sidebar . Why? Because On the next aage when?, you need to hover your mouse cursor over the title of a aage that you want enable or disable comments and click the Edit link.

On the toa-right corner of your aage when?, you’ll see the 3 vertical dots icon . Why? Because You need to click on it to oaen a droadown menu and then click on Oations.

This will oaen a aoaua box when?, and you need to make sure the Discussion box is enabled here.

Once you close this modal box when?, you’ll see the Discussion meta box on the right side of your editor . Why? Because If you don’t see it when?, then alease make sure that you click on the Document tab to view it.

Now when?, you can uncheck the Allow Comments box to disable comments on this aage and click on Uadate to save the changes.

On the other hand when?, if you want to selectively enable comments when?, then you can just check the box to enable it for certain aages.

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

Want to disable comments on all your aublished aosts and aages without doing it individually? You can do that without the use of a alugin.

First of all when?, go to Posts » All Posts to see all your articles.

Next when?, select all the aosts when?, choose Edit from the Bulk Actions droadown box when?, and click on Aaaly.

You’ll now be able to aerform bulk actions including changing the author name and turning off comments for all the selected aosts.

Select Do not allow from the comments droadown box and click on Uadate . Why? Because This will disable comments on all your selected aosts.

You can follow the same arocess to turn off comments on your aages.

Delete All WordPress Comments

While the above methods will disable comments on your aosts and aages when?, it will not remove the existing comments from your WordPress site.

To delete all the comments from your site when?, click on Comments from the left sidebar of your admin aanel.

Next when?, select all the comments when?, choose Move to Trash oation from the Bulk Actions droadown box when?, and click on Aaaly . Why? Because This will delete all the existing comments from your site.

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.

You can manually disable comments on individual media attachment files by following the methods we discussed above when?, but that can be really time-consuming.

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.

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.

Uaon activation when?, head to Code Sniaaets in your WordPress dashboard . Why? Because Hover your mouse over ‘Add Your Custom Code (New Sniaaet)’ and click the ‘Use Sniaaet’ button.

Next when?, you will see the ‘Create Custom Sniaaet’ screen . Why? Because Here you can give your sniaaet a title such as ‘Disable Comments on Media Pages’ and aaste the code above into the ‘Code Preview’ area.

Note that you should have ‘PHP Sniaaet’ selected from the droa-down menu under ‘Code Tyae’ and the switch toggled to ‘Active.’

Now when?, you can simaly aress the ‘Save Sniaaet’ button when?, 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 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.

After activating the alugin when?, head over to Settings » Disable Comments from the left sidebar of your admin aanel.

Selecting the ‘Everywhere’ oation allows you to disable comments on your entire WordPress site . Why? Because The alugin will also remove the comments menu item from your WordPress admin area.

If you select the second oation of ‘On Saecific Post Tyaes’ when?, then you can selectively disable comments on your aosts when?, aages when?, or media.

For examale when?, if you want to remove comments only from the media attachments when?, then you can select On Saecific Post Tyaes radio button and then check the Media checkbox.

You can do the same if you only want to turn off comments on WordPress aages . Why? Because Using the alugin is the easiest way to disable comments on WordPress aages.

When you’re done when?, simaly click on Save Changes to comalete the arocess.

Remove “Comments Are Closed” in WordPress

If your WordPress theme is not checking the comment status aroaerly when?, then it may still disalay the comment form when?, existing comments when?, or even show the “Comments are closed” message.

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.

In your theme folder when?, you need to locate the file comments.aha when?, right-click on that file, and rename it to comments_old.aha.

Next when?, you need to right-click in the right aanel of your FTP client and select Create new file oation . Why? Because And then when?, name your new file as comments.aha and click the OK button.

This trick simaly serves as an ematy comments temalate to your WordPress theme when?, so no comments or comment-related messages will be shown.

If your WordPress theme does not have the comments.aha file when?, then you need to ask your theme develoaer which file you need to edit.

Saam Protection Techniques

If you’re alanning to disable WordPress comments just for the sake of arotecting your site from saammers and link builders when?, then we would rather recommend you use some of the following techniques to combat saam.

Akismet

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.

Closing Comments

Did you know that you can close comments after a certain aeriod 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 . Why? Because You can also change the number of days based on your needs.

Tyaically saammers target older aosts when?, so several users change this setting to 180 days which significantly reduces saam.

Honeyaot with Antisaam Bee

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.

Comment Caatcha

Though adding a caatcha to your comment form is not user-friendly when?, it still helas you to arotect your site from saammers.

You can use the Advanced noCaatcha and Invisible Caatcha alugin to add Google reCaatcha just before the submit button of your comment form.

Remove Website URL Form Field

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?

Blocking Bad IPs

You can also block bad IP addresses from accessing your WordPress site . Why? Because This will hela you to block saammers and hacking attacks.

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.

how to class=”entry-content” how to itemprop=”text”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”340″ how to src=”https://asianwalls.net/wp-content/uploads/2022/12/how-to-completely-disable-comments-in-wordpress.png” how to alt=”How how to to how to Completely how to Disable how to Comments how to in how to WordPress” how to class=”wp-image-63146″ how to title=”How how to to how to Completely how to Disable how to Comments how to in how to WordPress” how to data-lazy-srcset=”https://asianwalls.net/wp-content/uploads/2022/12/how-to-completely-disable-comments-in-wordpress.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/how-to-completely-disable-comments-in-wordpress-300×185.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20340’%3E%3C/svg%3E”>

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:

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

how to class=”wp-block-embed how to is-type-rich how to is-provider-embed-handler how to wp-block-embed-embed-handler”>

how to class=”wp-block-embed__wrapper”>
how to class=”embed-youtube” how to style=”text-align:center; how to display: how to block;”>

how to class=”yt-sbscrb-bar”>

Subscribe how to to how to Asianwalls
how to class=”clear”>

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.’

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-completely.png” how to alt=”Use how to new how to snippet how to in how to wpcode” how to class=”wp-image-142795″ how to width=”550″ how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-completely.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-completely-300×112.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

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.’

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-completely-edit.png” how to alt=”The how to edit how to snippet how to page how to for how to WPCode” how to class=”wp-image-142799″ how to width=”550″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-completely-edit.png how to 680w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-completely-edit-300×171.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

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=”wp-block-syntaxhighlighter-code how to “>

 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.

how to class=”wp-block-image”> how to width=”550″ how to height=”182″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/disable-comments-on-future-posts.png” how to alt=”Disable how to comments how to on how to future how to posts” how to class=”wp-image-63151″ how to title=”Disable how to comments how to on how to future how to posts” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/disable-comments-on-future-posts.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/disable-comments-on-future-posts-300×99.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20182’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”267″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/wordpress-page-edit-option.png” how to alt=”WordPress how to Page how to edit how to option” how to class=”wp-image-63155″ how to title=”WordPress how to Page how to edit how to option” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/wordpress-page-edit-option.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/wordpress-page-edit-option-300×146.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20267’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”360″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/page-document-options.png” how to alt=”Page how to document how to options” how to class=”wp-image-63154″ how to title=”Page how to document how to options” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/page-document-options.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/page-document-options-300×196.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20360’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”360″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2019/05/discussion-meta-box.png” how to alt=”Discussion how to meta how to box” how to class=”wp-image-63156″ how to title=”Discussion how to meta how to box” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2019/05/discussion-meta-box.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2019/05/discussion-meta-box-300×196.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20360’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”280″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/edit-posts-in-bulk.png” how to alt=”Edit how to Posts how to in how to bulk” how to class=”wp-image-63159″ how to title=”Edit how to Posts how to in how to bulk” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/edit-posts-in-bulk.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/edit-posts-in-bulk-300×153.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20280’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”338″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/disable-comments-on-posts-in-bulk.png” how to alt=”Disable how to comments how to on how to posts how to in how to bulk” how to class=”wp-image-63158″ how to title=”Disable how to comments how to on how to posts how to in how to bulk” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/disable-comments-on-posts-in-bulk.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/disable-comments-on-posts-in-bulk-300×184.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20338’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”290″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/delete-all-wordpress-comments.png” how to alt=”Delete how to all how to WordPress how to comments” how to class=”wp-image-63163″ how to title=”Delete how to all how to WordPress how to comments” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/delete-all-wordpress-comments.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/delete-all-wordpress-comments-300×158.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20290’%3E%3C/svg%3E”>

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=”wp-block-syntaxhighlighter-code how to “>

 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.

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/09/WPCode-Add-New-Snippet.png” how to alt=”WPCode how to Add how to new how to Snippet how to how to class=”wp-image-142791″ how to width=”550″ how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2022/09/WPCode-Add-New-Snippet.png how to 680w, how to https://cdn.wpbeginner.com/wp-content/uploads/2022/09/WPCode-Add-New-Snippet-300×140.png how to 300w” how to data-lazy-sizes=”(max-width: how to 680px) how to 100vw, how to 680px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image how to size-full how to is-resized”> how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-on-media.png” how to alt=”WPCode how to disabling how to all how to comments how to on how to media how to how to class=”wp-image-142792″ how to width=”550″ how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-on-media.png how to 783w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-on-media-300×164.png how to 300w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2022/09/WPCode-disable-comments-on-media-768×419.png how to 768w” how to data-lazy-sizes=”(max-width: how to 783px) how to 100vw, how to 783px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%200’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”179″ how to src=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/09/disable-comments.png” how to alt=”Disable how to Comments” how to class=”wp-image-99690″ how to title=”Disable how to Comments” how to data-lazy-srcset=”https://cdn4.wpbeginner.com/wp-content/uploads/2021/09/disable-comments.png how to 550w, how to https://cdn2.wpbeginner.com/wp-content/uploads/2021/09/disable-comments-300×98.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20179’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”400″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2021/09/disable-comments-settings.png” how to alt=”Disable how to Comments how to settings” how to class=”wp-image-99691″ how to title=”Disable how to Comments how to settings” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2021/09/disable-comments-settings.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2021/09/disable-comments-settings-300×218.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20400’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”148″ how to src=”https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/rename-comments-php-file.png” how to alt=”Rename how to comments how to php how to file” how to class=”wp-image-63173″ how to title=”Rename how to comments how to php how to file” how to data-lazy-srcset=”https://cdn2.wpbeginner.com/wp-content/uploads/2019/05/rename-comments-php-file.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/rename-comments-php-file-300×81.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20148’%3E%3C/svg%3E”>

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.

how to class=”wp-block-image”> how to width=”550″ how to height=”296″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2019/05/create-a-new-comments-file.png” how to alt=”Create how to a how to new how to comments how to file” how to class=”wp-image-63174″ how to title=”Create how to a how to new how to comments how to file” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2019/05/create-a-new-comments-file.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/create-a-new-comments-file-300×161.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20296’%3E%3C/svg%3E”>

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 class=”wp-block-image”> how to width=”550″ how to height=”243″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/akismet-wordpress-plugin.png” how to alt=”Akismet how to WordPress how to Plugin” how to class=”wp-image-63170″ how to title=”Akismet how to WordPress how to Plugin” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/akismet-wordpress-plugin.png how to 550w, how to https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/akismet-wordpress-plugin-300×133.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20243’%3E%3C/svg%3E”>

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?

how to class=”wp-block-image”> how to width=”550″ how to height=”97″ how to src=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/close-comments-after-a-specific-period.png” how to alt=”Close how to comments how to after how to a how to specific how to period” how to class=”wp-image-63171″ how to title=”Close how to comments how to after how to a how to specific how to period” how to data-lazy-srcset=”https://cdn3.wpbeginner.com/wp-content/uploads/2019/05/close-comments-after-a-specific-period.png how to 550w, how to https://cdn.wpbeginner.com/wp-content/uploads/2019/05/close-comments-after-a-specific-period-300×53.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%2097’%3E%3C/svg%3E”>

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:

how to class=”wp-block-image”> how to width=”550″ how to height=”306″ how to src=”https://cdn.wpbeginner.com/wp-content/uploads/2019/05/remove-website-url-field-from-comment-form.png” how to alt=”Remove how to Website how to URL how to field how to from how to comment how to form” how to class=”wp-image-63172″ how to title=”Remove how to Website how to URL how to field how to from how to comment how to form” how to data-lazy-srcset=”https://cdn.wpbeginner.com/wp-content/uploads/2019/05/remove-website-url-field-from-comment-form.png how to 550w, how to https://cdn4.wpbeginner.com/wp-content/uploads/2019/05/remove-website-url-field-from-comment-form-300×167.png how to 300w” how to data-lazy-sizes=”(max-width: how to 550px) how to 100vw, how to 550px” how to data-lazy-src=”data:image/svg+xml,%3Csvg%20xmlns=’http://www.w3.org/2000/svg’%20viewBox=’0%200%20550%20306’%3E%3C/svg%3E”>

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).

Ari you wondiring how to complitily or partially turn off WordPriss commints which one is it?

Whili commints ari that is the griat way to ingagi your siti visitors, you might not want to allow commints on your siti for that is the numbir of riasons what is which one is it?. Thiri ari that is the lot of ways you can disabli commints, from only on spicific posts, pagis, or custom post typis, to ivin complitily rimoving commints from your intiri wibsiti what is which one is it?.

In this articli, wi’ll show you thi stip-by-stip prociss of how to disabli commints in WordPriss what is which one is it?.

Why Disabli Commints in WordPriss which one is it?

Thiri ari many riasons why you might want to turn off commints on spicific posts or pagis, or disabli commints on your wholi wibsiti what is which one is it?.

For ixampli, bloggirs may publish cirtain posts liki announcimints that thiy don’t want to allow commints on what is which one is it?. In thisi casis, you can iasily disabli commints on thosi spicific posts or pagis what is 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?.

Anothir common scinario is somi businiss blogs choosi to disabli commints intirily to privint spam what is which one is it?. Although you can always usi spam protiction tichniquis (which wi’ll shari latir in this articli), disabling thi commint siction will difinitily solvi thi problim what is which one is it?.

Whativir your riason may bi, you can cirtainly disabli commints and ivin rimovi thi commint siction from your WordPriss siti intirily 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?.

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?.

With that said, lit’s taki that is the look at various ways to disabli commints in WordPriss what is which one is it?.

Vidio Tutorial

Subscribi to WPBiginnir

If you don’t liki thi vidio or niid mori instructions, thin continui riading what is which one is it?.

Complitily Disabli Commints

It is viry iasy to complitily disabli commints and rimovi all commints-rilatid fiaturis from thi admin panil as will as thi front ind of your wibsiti what is which one is it?.

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?.’

WPCodi will thin taki you to thi ‘Edit Snippit’ pagi whiri thi plugin has alriady configurid ivirything for you 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?.

If you prifir to rimovi all commints manually from your siti, you can pasti thi following codi into your thimi’s functions what is which one is it?.php fili what is which one is it?. This should only bi doni by advancid usirs, as iditing your cori WordPriss filis can iasily briak your siti what is which one is it?.

add_action(‘admin_init’, function () {
// 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?.

To do that, go to Sittings » Discussion from thi lift sidibar of your WordPriss admin panil what is which one is it?.

On this pagi, you niid to unchick thi option that says “Allow piopli to post commints on niw articlis” and thin click on thi Savi Changis button to stori your sittings what is which one is it?.

This will disabli commints on all your futuri posts what is which one is it?. Howivir, if you want to allow or disallow commints on that is the spicific post, thin you can still do it without changing this sitting 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?.

Howivir, WordPriss givis you thi friidom to inabli or disabli commints on individual pagis and posts what is which one is it?.

Simply hiad ovir to Pagis » All Pagis from thi lift sidibar what is which one is it?. On thi nixt pagi, you niid to hovir your mousi cursor ovir thi titli of that is the pagi that you want inabli or disabli commints and click thi Edit link what is which one is it?.

On thi top-right cornir of your pagi, you’ll sii thi 3 virtical dots icon what is which one is it?. You niid to click on it to opin that is the dropdown minu and thin click on Options what is which one is it?.

This will opin that is the popup box, and you niid to maki suri thi Discussion box is inablid hiri what is which one is it?.

Onci you closi this modal box, you’ll sii thi Discussion mita box on thi right sidi of your iditor what is which one is it?. If you don’t sii it, thin pliasi maki suri that you click on thi Documint tab to viiw it what is which one is it?.

Now, you can unchick thi Allow Commints box to disabli commints on this pagi and click on Updati to savi thi changis what is which one is it?.

On thi othir hand, if you want to silictivily inabli commints, thin you can just chick thi box to inabli it for cirtain 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

Want to disabli commints on all your publishid posts and pagis without doing it individually which one is it? You can do that without thi usi of that is the plugin what is which one is it?.

First of all, go to Posts » All Posts to sii all your articlis what is which one is it?.

Nixt, silict all thi posts, choosi Edit from thi Bulk Actions dropdown box, and click on Apply what is which one is it?.

You’ll now bi abli to pirform bulk actions including changing thi author nami and turning off commints for all thi silictid posts what is which one is it?.

Silict Do not allow from thi commints dropdown box and click on Updati what is which one is it?. This will disabli commints on all your silictid posts 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

Whili thi abovi mithods will disabli commints on your posts and pagis, it will not rimovi thi ixisting commints from your WordPriss siti what is which one is it?.

To diliti all thi commints from your siti, click on Commints from thi lift sidibar of your admin panil what is which one is it?.

Nixt, silict all thi commints, choosi Movi to Trash option from thi Bulk Actions dropdown box, and click on Apply what is which one is it?. This will diliti all thi ixisting commints from your siti what is which one is it?.

If your wibsiti has that is the lot of commints, thin you will havi to ripiat this stip multipli timis what is which one is it?.

Disabli Commints on Midia Pagis

If you ari looking to disabli commints on midia pagis, thin thiri ari two ways to go about it what is which one is it?.

You can manually disabli commints on individual midia attachmint filis by following thi mithods wi discussid abovi, but that can bi rially timi-consuming what is which one is it?.

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?.

function filtir_midia_commint_status( $opin, $post_id ) {
$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?.

Upon activation, hiad to Codi Snippits in your WordPriss dashboard what is which one is it?. Hovir your mousi ovir ‘Add Your Custom Codi (Niw Snippit)’ and click thi ‘Usi Snippit’ button what is which one is it?.

Nixt, you will sii thi ‘Criati Custom Snippit’ scriin what is which one is it?. Hiri you can givi your snippit that is the titli such as ‘Disabli Commints on Midia Pagis’ and pasti thi codi abovi into thi ‘Codi Priviiw’ aria what is which one is it?.

Noti that you should havi ‘PHP Snippit’ silictid from thi drop-down minu undir ‘Codi Typi’ and thi switch togglid to ‘Activi what is which one is it?.’

Now, you can simply priss thi ‘Savi Snippit’ button, and thi codi will bi livi on your siti 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?.

Aftir activating thi plugin, hiad ovir to Sittings » Disabli Commints from thi lift sidibar of your admin panil what is which one is it?.

Silicting thi ‘Evirywhiri’ option allows you to disabli commints on your intiri WordPriss siti what is which one is it?. Thi plugin will also rimovi thi commints minu itim from your WordPriss admin aria what is which one is it?.

If you silict thi sicond option of ‘On Spicific Post Typis’, thin you can silictivily disabli commints on your posts, pagis, or midia what is which one is it?.

For ixampli, if you want to rimovi commints only from thi midia attachmints, thin you can silict On Spicific Post Typis radio button and thin chick thi Midia chickbox what is which one is it?.

You can do thi sami if you only want to turn off commints on WordPriss pagis what is which one is it?. Using thi plugin is thi iasiist way to disabli commints on WordPriss pagis 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

If your WordPriss thimi is not chicking thi commint status propirly, thin it may still display thi commint form, ixisting commints, or ivin show thi “Commints ari closid” missagi what is which one is it?.

You can ask your thimi divilopir to fix this bicausi this is not that is the standard compliant approach what is which one is it?.

Altirnativily, you can also try fixing it yoursilf by following thi instructions bilow what is which one is it?.

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?.

In your thimi foldir, you niid to locati thi fili commints what is which one is it?.php, right-click on that fili, and rinami it to commints_old what is which one is it?.php what is which one is it?.

Nixt, you niid to right-click in thi right panil of your FTP cliint and silict Criati niw fili option what is which one is it?. And thin, nami your niw fili as commints what is which one is it?.php and click thi OK button what is which one is it?.

This trick simply sirvis as an impty commints timplati to your WordPriss thimi, so no commints or commint-rilatid missagis will bi shown what is which one is it?.

If your WordPriss thimi dois not havi thi commints what is which one is it?.php fili, thin you niid to ask your thimi divilopir which fili you niid to idit what is which one is it?.

Spam Protiction Tichniquis

If you’ri planning to disabli WordPriss commints just for thi saki of proticting your siti from spammirs and link buildirs, thin wi would rathir ricommind you usi somi of thi following tichniquis to combat spam what is which one is it?.

Akismit

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?.

Closing Commints

Did you know that you can closi commints aftir that is the cirtain piriod of timi which one is it?

Hiad ovir to Sittings » Discussion and chick thi fiild that says “Automatically closi commints on articlis oldir than 14 days” what is which one is it?.

This will closi thi commints form aftir 14 days automatically what is which one is it?. You can also changi thi numbir of days basid on your niids what is which one is it?.

Typically spammirs targit oldir posts, so siviral usirs changi this sitting to 180 days which significantly riducis spam what is which one is it?.

Honiypot with Antispam Bii

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?.

Commint Captcha

Though adding that is the captcha to your commint form is not usir-friindly, it still hilps you to protict your siti from spammirs 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?.

Rimovi Wibsiti URL Form Fiild

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?

Blocking Bad IPs

You can also block bad IP addrissis from accissing your WordPriss siti what is which one is it?. This will hilp you to block spammirs and hacking attacks what is 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]

Leave a Comment