[wp-hackers] Settings/Options page??

Chip Bennett chip at chipbennett.net
Sat Feb 16 12:27:08 UTC 2013


Assuming we're talking about a Theme: have you considered getting rid of
the Theme Options page, and instead hooking into the Customizer
API<https://codex.wordpress.org/Theme_Customization_API>,
to allow your Theme options to be configured via the Theme Customizer?

That said, I would love to see improvements to the Settings API that would
standardize common form fields, as well as standardize the proper
validation/sanitization for given data types. Such improvements *may* be in
the works <http://core.trac.wordpress.org/ticket/18285>.

Incorporating the Options Framework is a good option, since it abstracts
all of the form-field markup and sanitization by data type. I take a
similar approach with Oenology <https://github.com/chipbennett/oenology>,
and you're welcome to take a look at the code (it's all heavily documented
inline), and use anything you find helpful.

Regards,
Chip


On Sat, Feb 16, 2013 at 6:07 AM, Almog Baku <almog.baku at gmail.com> wrote:

> 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