Closed dannyreaktiv closed 1 month ago
Personally, I think that would totally make sense, not only for block bindings but potentially for other use cases as well. I'll try to get something working if I find time to see what it could look like.
I've started exploring this in this core pull request that I hope can help with the discussion. I'll try to get the respective one in Gutenberg.
I've started another PR in Gutenberg to see how it could look like and the necessary changes: https://github.com/WordPress/gutenberg/pull/65099
Wow. Thank you!
What problem does this address?
Block bindings are a very powerful tool, and the UI is good, but the experience of assigning a meta field means the user sees the meta key.
What is your proposed solution?
I propose adding a
label
/title
/name
to the$args
array inregister_meta()
that would then be exposed in the Block Bindings and available for use elsewhere in WordPress.