=== AddonLogic Disable Comments ===
Contributors: snehalpancholi
Tags: disable comments, remove comments, hide comments, no comments, comment control
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.1
Stable tag: 1.0.0
License: GPL-2.0+
License URI: https://www.gnu.org/licenses/gpl-2.0.html

One-click site-wide comment disabling with per post-type control, hide existing comments, remove admin menus, and disable pingbacks/trackbacks.

== Description ==

**AddonLogic Disable Comments** gives you complete control over comments on your WordPress site without touching your database. Whether you want to disable comments everywhere, only on specific post types (posts, pages, media, or custom post types), or just hide existing ones temporarily — this plugin handles it all with a clean, accessible settings page.

**Key Features:**

* **Master Switch** — disable comments everywhere in a single click.
* **Per Post Type** — granular toggles for Posts, Pages, Media/Attachments, and any registered Custom Post Type.
* **Hide Existing Comments** — suppresses existing comments on the front end without deleting them. Re-enabling restores everything.
* **Remove Admin Menu Items** — removes "Comments" from the sidebar and admin toolbar; redirects direct URL access.
* **Disable Pingbacks & Trackbacks** — removes the X-Pingback header, disables XML-RPC pingback methods, and prevents self-pings.
* **Comment Feed Control** — redirects comment RSS feeds when all comments are disabled.
* **Dashboard Widget Removal** — hides the "Recent Comments" widget when the master switch is on.
* **Admin Column Removal** — removes the comments bubble column from post-type list tables for disabled types.
* **Non-Destructive** — zero database writes to posts. All changes are reversible by adjusting settings.

== Installation ==

1. Upload the `disable-comments` folder to `/wp-content/plugins/`.
2. Activate the plugin through the **Plugins** screen in WordPress.
3. Go to **Settings → Disable Comments** to configure.

== Frequently Asked Questions ==

= Will disabling comments delete my existing comments? =
No. Comments are hidden on the front end when you enable "Hide existing comments", but they remain in the database. Disabling the option restores them instantly.

= Does this plugin work with WooCommerce product reviews? =
Product reviews in WooCommerce use a custom post type (`product`). It will appear in the per-post-type list and can be toggled independently.

= Can I disable comments only for attachments/media? =
Yes. Select "Attachment" in the per post-type section.

= Does it disable comment feeds? =
Yes. When "Disable comments everywhere" is on, comment RSS feeds are redirected to the site homepage.

= Is this compatible with WordPress Multisite? =
The plugin is designed for single-site installations. Multisite support is not tested.

== Screenshots ==

1. Settings page — master switch and per-post-type toggles.
2. Behaviour options — hide existing, remove menus, disable pingbacks.

== Changelog ==

= 1.0.0 =
* Initial release.

== Upgrade Notice ==

= 1.0.0 =
First public release.
