Skip to content

Fully disables all comment-related features across the WordPress site. This includes frontend comment areas, admin menus, discussion settings, feeds, and all support in post types. Works globally and silently using MU plugin architecture.

License

Notifications You must be signed in to change notification settings

mukeshkushwahae/site-comments-disabler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Site Comments Disabler

This is a Must-Use (MU) plugin for WordPress that completely disables comments across your whole site. It removes all comment features from the frontend and backend, including:

  • No comment boxes on posts or pages
  • No "Comments" menu in the admin dashboard
  • No "Discussion" settings in admin
  • Removes support for comments and trackbacks from all post types
  • Hides comment-related HTML like <div class="comments-area">
  • Blocks comment and ping functions using filters

What is an MU Plugin?

MU stands for Must-Use. MU plugins are loaded automatically by WordPress and don’t show up in the regular Plugins screen. They’re good for site-wide or permanent functionality.

Learn more: https://wordpress.org/documentation/article/must-use-plugins/

Why use this plugin?

If your website doesn’t need comments (like a company site, landing page, or static blog), this plugin helps you clean everything related to WordPress comments with zero configuration.

How to install

  1. Go to your WordPress directory.
  2. Open the wp-content/mu-plugins/ folder.
  3. If the mu-plugins folder doesn’t exist, create it.
  4. Copy the file site-comments-disabler.php into this folder.

That’s it! WordPress will load the plugin automatically. No need to activate it — MU plugins run by default.

License

This plugin is open source and released under the GPL-2.0 license.

Author

Mukesh Kushwaha
GitHub: https://github.com/mukeshkushwahae

About

Fully disables all comment-related features across the WordPress site. This includes frontend comment areas, admin menus, discussion settings, feeds, and all support in post types. Works globally and silently using MU plugin architecture.

Topics

Resources

License

Stars

Watchers

Forks

Languages