[wp-hackers] Settings/Options page??
robin.niemeyer at gmx.net
Sat Feb 16 12:59:20 UTC 2013
I think it looks more complicated than it is (depending on your
For example, I wrapped the callback/field/section part into a single
function which calls the actual rendering methods, sparing me much of
the work you mentioned:
Look out for the class named OptionsPage (line 231ff.), especially the
methods 'page' and 'add_section'.
The options page itself is registered in line 137 by calling
OptionsPage::register() on admin_init.
Hope this helps,
Am 16.02.2013 12:07, schrieb Almog Baku:
> Hey guys,
> Is that just me? or the process of building a options page is extremely
> By my knowledge, I have to build a preproccessor/callback function to every
> field-type/section/page part, and than mix them together by the API. Or
> using the alternative - settings-framework who already implement it..
> Is there something built in? or the current API is doens't know do handle
> it yet(and its sucks comparing the alternatives like Drupal and the other
> ~ AlmogBaku
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
More information about the wp-hackers