wp-block-bindings-api
Installation
SKILL.md
WordPress Block Bindings API
Block Bindings replace selected block attributes at render time from a registered data source. Use them when content should stay dynamic while remaining a normal block. They do not persist data by themselves and do not make an unsupported attribute bindable automatically.
Decide before implementing
| Need | Use |
|---|---|
| Bind a supported block attribute to dynamic data | Block Bindings |
| Change the complete rendered structure | Dynamic block render.php |
| Store and validate a custom field | Metadata/REST registration plus a binding |
| Merely transform final HTML | Render filter or HTML API |
Register the server source
Register on init. The name must be lowercase namespace/name and the callback must be callable.