[wp-hackers] Settings/Options page??
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
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.
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
> 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