401 B
401 B
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: