Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Block Bindings] Human readable label for Meta fields #65066

Closed
dannyreaktiv opened this issue Sep 4, 2024 · 4 comments · Fixed by #65099
Closed

[Block Bindings] Human readable label for Meta fields #65066

dannyreaktiv opened this issue Sep 4, 2024 · 4 comments · Fixed by #65099
Labels
[Feature] Block bindings [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.

Comments

@dannyreaktiv
Copy link

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.

Screenshot 2024-09-03 at 7 53 22 AM

What is your proposed solution?

I propose adding a label/title/name to the $args array in register_meta() that would then be exposed in the Block Bindings and available for use elsewhere in WordPress.

@dannyreaktiv dannyreaktiv added the [Type] Enhancement A suggestion for improvement. label Sep 4, 2024
@SantosGuillamot
Copy link
Contributor

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.

@SantosGuillamot
Copy link
Contributor

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.

@SantosGuillamot
Copy link
Contributor

I've started another PR in Gutenberg to see how it could look like and the necessary changes: #65099

@dannyreaktiv
Copy link
Author

Wow. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Block bindings [Status] In Progress Tracking issues with work in progress [Type] Enhancement A suggestion for improvement.
Projects
Status: Done
4 participants