=== AddonLogic Inline Images in Comments Toggle ===
Contributors: snehalpancholi
Tags: comments, images, inline images, comment images, moderation
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

Fine-grained control over whether images appear inline in comment bodies — strip, convert to links, or allow by role.

== Description ==

AddonLogic Inline Images in Comments Toggle lets site owners decide exactly how `<img>` tags inside approved comment bodies are presented to visitors.

Three modes:
* **Allow** — images render as-is. Optional max-width cap prevents layout breakage.
* **Convert to link** — each `<img>` is replaced with a clickable hyperlink. The link text is configurable (default: `[image]`).
* **Strip** — `<img>` tags are removed completely.

Role exceptions let administrators or editors always display images regardless of the active mode.

= Features =
* Three display modes: Allow, Convert to link, Strip
* Admin and Editor role exemptions
* Configurable link text for "Convert to link" mode
* Optional max-width constraint for "Allow" mode
* Zero impact on stored comment content — filtering is display-only

== Installation ==
1. Upload the `inline-images-in-comments` folder to `/wp-content/plugins/`.
2. Activate via **Plugins → Installed Plugins**.
3. Go to **Settings → Comment Images** to choose a mode.

== Frequently Asked Questions ==

= Does this change the stored comment content? =
No. The plugin filters `comment_text` output only — the database rows are never modified.

= What happens to comments already containing images if I switch modes? =
The mode is applied at display time, so switching modes immediately affects how existing comments are rendered.

= Can I allow images only for editors? =
Enable "Strip" or "Convert to link" mode, then check only "Editors" under Role Exceptions.

== Changelog ==

= 1.0.0 =
* Initial release.

== Screenshots ==

1. Settings page — three mode radio buttons and role exceptions.
2. Front-end comment list showing image links in "Convert to link" mode.
