Build out register_setting like register_meta
|Reported by:||joehoyle||Owned by:||rmccue|
|Component:||Options, Meta APIs||Keywords:||needs-dev-note has-unit-tests|
In 4.6 the diligent work was done to beef out register_meta() to be much more extensible. For use in the REST API, I'd like have a similar API for registered settings.
Register settings and meta is quite similar (settings are after all just meta on the site object ;) ) so I think we can take a lot of design queues from register_meta and bring them into register_setting. However, as settings are not shared across any "object type", the way they are stored in a global can probably be a bit simpler.
Much like register_meta I propose we change the function signature to register_setting( $option_group, $option_name, $args = array() ).
I've attached an initial patch of the kind of thing I'm thinking.
Change History (37)
- Owner set to joehoyle
- Resolution set to fixed
- Status changed from new to closed
- Owner changed from joehoyle to rmccue
- Status changed from reopened to assigned