[wp-hackers] Settings/Options page??
robin niemeyer
robin.niemeyer at gmx.net
Sat Feb 16 12:59:20 UTC 2013
Hey,
I think it looks more complicated than it is (depending on your
requirements, though).
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:
https://github.com/thsur/wordpress-unify-backend/blob/master/unify_backend/unify.php
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,
Robin
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
> complicated?
>
> 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
> platforms).
>
> Thanks,
> ~ AlmogBaku
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
More information about the wp-hackers
mailing list