Er is vrijwel geen documentatie over dit onderwerp en het plugin API-bestand bevat geen commentaar dat het gebruik van deze functie uitlegt. Bovendien is de enige plek waar ik het kan zien gebruikt in plugins, niet in de kern. Dus wat doet api.addSaveableUserOptionField() precies? Is er aanvullende configuratie nodig om het te gebruiken?
I don’t know, but here’s what I think I found out.
But first–My question is why do you care? Is there something you’re trying to do? But maybe if you’re trying to create a plugin that has user options, this is how to to do it. It’s not used in core since it’s a hook especially for plugins to be able to have their own user options.
Looks like it’s used in the Chat plugin like here:
Looks like if your plugin has user options then you use this to establish that it’s a user option with the UserUpdater.
Ja, ik ben van plan om een gebruikersinstelling in een plugin te hebben. Ik zag eerder dat Chat en ik meen me te herinneren dat AI deze functie gebruikten om gebruikersinstellingen toe te voegen, dus ik vroeg me af of er een gedocumenteerde manier was om dit te doen.