[wp-hackers] Settings/Options page??
Almog Baku
almog.baku at gmail.com
Sat Feb 16 14:39:20 UTC 2013
Hey guys,
I need to build an option page *for a plug-in*.. so the theme customization
api is pretty irrelevant.. but thanks.
Actually I looking for something much easy.. creating an object/array and
the wordpress will turn it to an actuall form with errors and validations
and even save the data.
I don't see any reason that there is no predefined callbacks for that..
I guess issue #18285 shoul'd solve it. but almost 2 years passed since it
was open :\
@Chip and @Robin, Thanks! it seems that I have to use the frameworks for
now.. or developing my own one.
~ Almog
On Sat, Feb 16, 2013 at 2:59 PM, robin niemeyer <robin.niemeyer at gmx.net>wrote:
> 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
> >
> _______________________________________________
> 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