By using this site, you agree to the Privacy Policy
Accept
upupdo upupdo
  • Latest BlogNew
  • Site Setup
    • WordPress
    • Hosting
    • Domain
  • Affiliate
  • Tools
  • Binom
Font ResizerAa
UpUpDoUpUpDo
Search
  • Latest BlogNew
  • Site Setup
    • WordPress
    • Hosting
    • Domain
  • Affiliate
  • Tools
  • Binom
WordPressPerformance & Advanced

How to Completely Disable WordPress Comments (5 Methods)

No Comments
Last updated: 2025/10/22
6 Min Read
Share

WordPress comments can be a double-edged sword, and personally, I believe their drawbacks often outweigh the benefits.

Benefits of WordPress Comments: Comments allow visitors to engage with your site, ask questions, and let you respond directly, boosting interaction. They provide valuable feedback, enrich your content, and can even inspire ideas for new posts.

Drawbacks of WordPress Comments: Comments can scare away readers if they contain outdated or negative content. Managing comments consumes a lot of time and effort. The most frustrating issue: spam bots frequently target comment sections, posting unwanted links and advertisements, which clutters your site and slows it down by consuming PHP memory.


In this guide, I’ll show you how to disable WordPress comments completely, including:

  1. Disabling comments via WordPress settings.
  2. Turning off comments for individual posts or pages.
  3. Bulk disabling comments across your site.
  4. Using plugins to remove comments.
  5. Using PHP code to permanently close the comment section.

Whether you want to turn off comments in WordPress, remove spam comments, or disable WordPress comments site-wide, this guide will walk you through every method step by step.

1. Disable Comments Using WordPress Settings

WordPress provides several options to selectively disable comments. Go to Settings > Discussion, find Default Post Settings, and uncheck “Allow people to post comments on new articles”. Then save your changes. This will completely disable comments for all future posts, which is ideal for newly created websites.


To disable comments on existing posts, go to Other Comment Settings and check “Automatically close comments on articles older than”, then set the number of days (e.g., 1 day). This will effectively close comments on all previously published posts.


2. Disable Comments on Individual Posts or Pages

If you notice that some parts of your website still have comments enabled, you can disable comments by editing individual WordPress posts or pages. For example, when editing a post, locate the Discussion section in the sidebar, click on it, and select Comments Disabled. This allows you to precisely control which posts or pages display comments.

3. Bulk Disable Comments

If disabling comments on individual posts or pages feels too tedious, you can use the bulk disable method. Go to your WordPress dashboard > Posts or Pages list, select the checkboxes next to the titles, click Edit > Apply, set Comments to Do not allow, and then click Update.

4. Disable Comments Using a Plugin

If you want to quickly disable comments, using a plugin is the easiest method. Here, we’ll use Disable Comments, a plugin with over a million installs and nearly all five-star ratings. It allows you to enable or disable comments across any content on your WordPress site.

Go to your WordPress dashboard, install the Disable Comments plugin, and activate it. Then, navigate to Settings > Disable Comments in the left-hand menu. Select Everywhere to globally disable all comments on your WordPress site, including posts, pages, and RSS feeds.

5. Disable Comments via functions.php

Alternatively, you can disable WordPress comments by adding custom code to your theme’s functions.php file. However, this method carries a higher risk and is not recommended for beginners, as any coding mistake could cause site errors. If you decide to use this approach, make sure to back up your website before making any changes.

You can add the code directly to your theme’s functions.php file or in a child theme. Use FTP or your hosting file manager to navigate to the following path:
/wp-content/themes/your-theme/

Then open the functions.php file and add the following code at the bottom of the file.

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);
    }
});

We’ve shared several methods to disable WordPress comments, and we hope this guide helps anyone looking to turn off the comment feature.

Disabling comments not only prevents spam but can also improve your website’s overall performance.

Additionally, for business or international trade websites, keeping the comment section enabled may make your site appear less professional and distract visitors from your main content. To maintain a clean and credible image, disabling comments is definitely a smart choice.

Info

  • About US
  • Contact Us
  • Privacy Policy
TAGGED:Comments
Share This Article
Facebook Email Print
Previous Article Getting Started with the WordPress Block Editor (Gutenberg for Beginners)
Next Article WordPress SEO optimization Guide The Ultimate WordPress SEO optimization Guide for Beginners
Leave a Comment Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

A clean and modern infographic showcasing a real-world comparison of budget VPS hosting under $30 per year. The design highlights key specifications such as 3 vCPU CPU, 4GB RAM, SSD storage, and global server locations including Los Angeles, San Jose, and New York. It represents a practical performance review of RackNerd and ColoCrossing VPS plans based on real usage scenarios like WordPress hosting and tracking systems.
Best Budget VPS Under $30/Year: RackNerd vs ColoCrossing Real Performance Test
1 month ago
Clean WordPress feature image with a pastel frosted gradient background, visualizing a VPS network outage caused by an incorrect default gateway. Red and green routing paths compare a failed connection and a working connection, highlighting a simple but critical configuration error.
My New ColoCrossing VPS Was Offline From Day One — The Default Gateway Was Wrong
1 month ago
Side-by-side comparison of cloud and self-hosted affiliate tracking systems, showing a simple cloud tracker dashboard versus a Binom self-hosted server setup for media buying and performance tracking.
Self-Hosted vs Cloud Affiliate Trackers: Why More Affiliates Are Using Binom
2 months ago
Binom has long been recognized as the "King of Self-Hosted Trackers" thanks to its insane processing efficiency and powerful customization features.
The King of Trackers — A Complete Binom Configuration Guide for Beginners
2 months ago
Best WordPress Permalink Settings for Beginners
Best WordPress Permalink Settings for Beginners (SEO Guide + Fixing 404 Errors)
4 months ago

Related

Troubleshooting WordPress 6.9: How to Fix Email Failure, WPML Crashes, and CPU Spikes
WordPressTroubleshooting

Troubleshooting WordPress 6.9: How to Fix Email Failure, WPML Crashes, and CPU Spikes

7 months ago
Undefined Array Key path
WordPressTroubleshooting

Resolving the “Undefined array key ‘path’” Warning in canonical.php on WordPress

11 months ago
WordPress User Management: A Comprehensive Guide to Roles, Permissions & Profile Settings
WordPressBasic Tutorials

WordPress User Management: A Comprehensive Guide to Roles, Permissions & Profile Settings

7 months ago
Publish Your First Article with WordPress
WordPressBasic Tutorials

Publish Your First Article with WordPress

7 months ago

upupdo upupdo

Up your site, do it right.

  • About US
  • Contact Us
  • Privacy Policy
  • Foyoy Games
  • OddbbO Finds
  • OddbbO World
  • SoEZ World

Copyright © 2026 UpUpDo | Powered by ThusZen

Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?