docs(wp-interactivity-api): Add WordPress 6.9 client navigation requirements#15
Conversation
…rements Per https://make.wordpress.org/core/2025/11/12/interactivity-apis-client-navigation-improvements-in-wordpress-6-9/ Script modules must be explicitly marked as compatible with client-side navigation using wp_interactivity()->add_client_navigation_support_to_script_module() Changes: - Add WordPress 6.9+ requirements section to SKILL.md - Update client-side navigation setup steps - Add router.md reference with full documentation - Add debugging step to check for data-wp-router-options attribute Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
| - if it uses custom bundling, confirm module output is supported. | ||
|
|
||
| ### 6) Debug common failure modes | ||
| ### 6) Client-side navigation with the Router |
There was a problem hiding this comment.
TBF this could be asked about all of the existing committed skills, but what's the point of dumping all this information here if it's available via references?
|
|
||
| - If repo build constraints are unclear, ask: "Is this using `@wordpress/scripts` or a custom bundler (webpack/vite)?" | ||
| - Consult: | ||
| - `references/router.md` - **READ THIS FIRST for navigation issues** |
There was a problem hiding this comment.
We should avoid yelling out our models since this needs to service more than just Anthropic
Summary
Adds documentation for the WordPress 6.9 requirement that script modules must be explicitly marked as compatible with client-side navigation.
Per Interactivity API's client navigation improvements in WordPress 6.9:
Without this, the router will not intercept link clicks on pages using manually registered script modules.
Changes
Key Addition
For blocks, use
block.json:{ "supports": { "interactivity": { "clientNavigation": true } } }Test Plan
🤖 Generated with Claude Code