Ability to add items to the options menu modal #25585
Labels
[Feature] Extensibility
The ability to extend blocks or the editing experience
[Type] New API
New API to be used by plugin developers or package users.
Is your feature request related to a problem? Please describe.
I am attempting to add a single option for a plugin. The plugin adds a screen reader only text format. The idea is to hide the screen reader text when an element is not in focus so users get a better idea of what the content will look like. However it was requested to make the text visible all the time. I think this is really an option that should be available, so I was trying to add it to the options modal, but cannot.
https://github.com/WordPress/gutenberg/blob/e703aee273ab34477d40044f5f3160d7009e0e39/packages/edit-post/src/components/options-modal/index.js
Describe the solution you'd like
Ideally it would be possible to register options for different sections so that developers could include additional options there.
Describe alternatives you've considered
Since I cannot add an option, I'm adding a plugin sidebar that will use a toggle control and save data to an option field, allowing users to turn the feature on and off. It will work, but not my first choice.
The text was updated successfully, but these errors were encountered: