What problem does it solve?
This Skill prevents WordPress plugins from failing activation or producing runtime errors by ensuring the root bootstrap file is structured correctly for modern WP requirements (6.5+ plugin dependencies and 6.7+ translation timing).
Core Features & Use Cases
- Bootstrap header correctness: Guides the required and recommended plugin header fields so WordPress can recognize, activate, and manage the plugin properly.
- Safe initialization wiring: Establishes ABSPATH guards, constants, Composer/PSR-4 autoload with a manual fallback, and correct use of
register_activation_hook plus plugins_loaded instantiation.
- Modern activation i18n safety: Prevents translation calls from firing before
after_setup_theme on WP 6.7+ to avoid _doing_it_wrong issues.
- Practical review checklist: Helps diagnose common activation problems like “Plugin could not be activated”, missing class/autoload failures, and incorrect hook placement or top-level business logic.
Quick Start
Ask the AI to review your plugin root main PHP file for activation safety, autoload correctness, plugin header requirements, and WP 6.5+/6.7+ translation timing, then propose concrete fixes.