Files
hub-insurance/.claude/skills/wp-plugin-development/references/structure.md
T
2026-07-02 15:54:39 -06:00

17 lines
401 B
Markdown

# Plugin structure and loading
Use this file when introducing or refactoring a plugin architecture.
## Core concepts
- Main plugin file contains the plugin header and bootstraps the plugin.
- Prefer predictable init:
- minimal boot file
- a loader/class that registers hooks
- admin-only code behind admin hooks
Upstream reference:
- https://developer.wordpress.org/plugins/plugin-basics/