Wareko Header Auto Accordion Admin
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.
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.