=== Wareko Header Auto Accordion Admin ===
Contributors: shinzanmono
Tags: accordion, editor, admin, headings, collapse
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 3.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wareko-header-auto-accordion-admin

Automatically adds accordion-like behavior to H2 and H3 headings in the WordPress Classic Editor.

== Description ==

This plugin enhances the editing experience in the WordPress Classic Editor by enabling accordion-style behavior for H2 and H3 headings while editing content.

Unlike frontend accordion plugins that affect published pages, this plugin works only inside the WordPress admin area. It helps authors organize, navigate, and preview hierarchical content more efficiently when editing long articles, documentation, or other structured content.

The plugin does not modify or inject any behavior into the frontend. Published content remains completely unchanged.

No external libraries are required.

== Features ==

* Accordion-style behavior for H2 headings
* Nested accordion behavior for H3 headings within H2 sections
* Improves readability and navigation when editing long content
* Works only with the WordPress Classic Editor
* Lightweight implementation using vanilla JavaScript
* No external dependencies
* Does not affect frontend rendering
* Compatible with frontend accordion plugins

== Scope ==

This plugin works only in the WordPress admin area.

It does not modify or inject any behavior into the public-facing website.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/`
2. Activate the plugin from the WordPress admin dashboard
3. Open a post or page using the Classic Editor
4. Use H2 and H3 headings and click them to expand or collapse sections while editing

== Important Notes ==

When an H2 or H3 section is collapsed, deleting its heading will also remove all content contained within that collapsed section.

If you want to delete only the heading itself, first expand the section completely, then remove only the heading.

To avoid accidental data loss, always make sure the section is expanded before deleting an H2 or H3 heading.

== Frequently Asked Questions ==

= Does this affect the public website? =

No. This plugin only works inside the WordPress Classic Editor and does not change frontend rendering.

= Does it work with Gutenberg? =

No. It is designed specifically for the Classic Editor.

= Does it require jQuery or external libraries? =

No. It uses plain (vanilla) JavaScript.

= Can this be used together with frontend accordion plugins? =

Yes. Since this plugin only affects the editor, it does not conflict with frontend accordion implementations.

== Upgrade Notice ==

= 3.0.0 =

Internal plugin file names have been updated. No action is required.

= 2.0.0 =

Initial release.

== Changelog ==

= 3.0.0 =

* Renamed internal plugin files.
* No functional changes.

= 2.0.0 =

* Initial release.
* Added accordion behavior for H2 headings inside the Classic Editor.
* Added nested accordion behavior for H3 headings.
* Editor-only functionality with no frontend impact.
* Lightweight implementation with no external dependencies.