[wp-trac] [WordPress Trac] #18285: New Settings API and workflow
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 15 22:56:31 UTC 2012
#18285: New Settings API and workflow
-----------------------------+-----------------------------
Reporter: nacin | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Future Release
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: 3.4-early |
-----------------------------+-----------------------------
Comment (by CaptainN):
I just added a DynamicForm.php example file, which shows how to make a
OnceForm from a string. This enables existing functions like
add_settings_fields and whatnot to be used to construct a form, and then
pass that through OnceForm to get the automatic request handling. With
some imagination, you can see how WPOnceForm (no proof yet) could
automatically save changes to settings from these forms without piles of
boilerplate.
https://github.com/adcSTUDIO/OnceForm/blob/master/examples/DynamicForm.php
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18285#comment:75>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list