-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Add method to name custom entity props #41637
Comments
It looks like each Site property is listed separately in that sidebar:
The culprit is that some properties use a human-readable label such as "Title", but the other ones are just passed verbatim, which is what you see. I wonder what a solution would look like, aside of course of allowing the developer to specify that 🤔 |
To document some thoughts from slack, Rich said:
To which Adam replied:
|
A minimal improvement would be adding more settings to this list:
Then, to allow plugin authors to supply their own labels, we'd likely need to create a new filter and then apply it to that list using
|
Maybe |
Subscribed. Would really like to see this feature in an upcoming update. |
What problem does this address?
When
useEntityProp( 'root', 'site', 'title' )
is used, the entity is named "Title" within the confirmation step when saving changes.Is there a method for naming custom entity props, to improve the UX of editing/saving them? Currently the
option_name
displays, instead of using a proper title, which makes it less clear what's actually being saved.What is your proposed solution?
Have a method for assigning a name/title that displays when saving an entity prop, instead of the option_name.
Screenshots
Modifying the site title entity, displays as "Title"
Modifying a site option entity, displays the
option_name
The text was updated successfully, but these errors were encountered: