Using the Block Bindings editor API (JS) in WP 6.7 #316
Replies: 2 comments
-
This topic has been approved. Ticket: #317 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Published: Getting and setting Block Binding values in the Editor |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
WordPress 6.7 exposes a partial set of JS-based editor functions for working with Block Bindings: WordPress/gutenberg#65713
registerBlockBindingsSource
: to register a source in the client.unregisterBlockBindingsSource
: to unregister an existing source.getBlockBindingsSource
: to get a specific registered source and its properties.getBlockBindingsSources
: to get all the registered sources in the client.These are now stable, public functions for theme and plugin authors to extend how Block Bindings work in their projects, especially custom Block Binding sources. I'm proposing a tutorial that walks developers through using these APIs to manipulate bindings in the editor.
There is an additional
getFieldsList
property that will also be public in the Gutenberg plugin only, which could also be a showcase of what's to come in the future.Beta Was this translation helpful? Give feedback.
All reactions