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

20 lines
559 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Debugging quick routes
## Plugin doesnt load / fatal errors
- Confirm correct plugin main file and header.
- Check PHP error logs and `WP_DEBUG_LOG`.
- If the repo is a site repo, confirm you edited the correct plugin under `wp-content/plugins/`.
## Activation hook surprises
- Hooks must be registered at top-level.
- Activation runs in a special context; avoid assuming other hooks already ran.
## Settings not saving
- Confirm `register_setting()` is called.
- Confirm the option group matches the form.
- Confirm capability checks and nonces.