Skip to content

Block Bindings in WordPress 7.0 #73467

@ockham

Description

@ockham

Supersedes #67520.

It's still early days for the 7.0 cycle, so expect this tracking issue to be frequently edited in the next couple of days.

Enhancements

Explorations

  • Bind multiple attributes to a single source. Example: Bind Image block's url, alt, title attributes to post's featured image (exposed via core/post-data source).
  • Try binding a block that requires a "repeater" concept. Example: Bind Gallery block to list of images.
  • Streamline the API based on recurring usage patterns in getValues and getFieldsList.
    • Examples include passing more arguments to them (e.g. block name, attributes); or providing additional ways for a block source to communicate that it will not expose and source items for a given block, attribute, or other context. (Things that are currently done by e.g. returning [] from getFieldsList, based on certain criteria.)
  • Block Bindings: Add support for the block visibility attribute #73461

Code Quality

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Block bindings[Type] IterationScoped iteration of an effort from a tracking issue or overview issue ideally for a major release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions