Head & Meta Hooks: The Silent Failures WordPress Won’t Warn You About
In short
- `wp_title` does not work in block themes; `document_title_parts` replaces it.
- Head/meta failures are silent: the code runs, but there is no warning.
- Common traps: `echo` instead of `return` in `body_class`, and printing scripts directly instead of `wp_enqueue_script`.