close
Skip to content

Using the supported attributes hook in WP 6.9 to make blocks bindable #444

@bph

Description

@bph

Discussed in #436

Originally posted by justintadlock December 18, 2025
WordPress introduced the block_bindings_supported_attributes_{$block_type} and block_bindings_supported_attributes hooks, which essentially let you make any block and one or more of its attributes bindable.

The hook doesn't take much to document. What the this tutorial needs is a solid use case. One that was just brought to my attention was the potential to make a featured video. That'd make a good tutorial that combined:

  • The Video block
  • Block Bindings
  • Custom Fields (Post Meta)
  • Custom Post Panel (for entering meta)
  • Block Variations

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Ready to publish

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions