[wp-hackers] only one settings_section per one custom settings page?

Otto otto at ottodestruct.com
Thu Apr 14 11:41:27 UTC 2011


On Thu, Apr 14, 2011 at 5:17 AM, Konrad Karpieszuk
<kkarpieszuk at gmail.com> wrote:
> hello Chip
>
> i read your tutorial (long but efficient!) and i understand that every
> options from one options page i have to store in one array, yes? you
> did it in this way, that option has name 'theme_oenology_options' and
> every setting is array data inside this option (eg
> ['header_nav_menu_position'] ).
>
> this is the only way to that? cannot i store difffrent settings in
> diffrent fields in database?
>
> i ask beacause i am prepering to change my code to fill your rules.
> but if i can omit to rearrange way how data is stored will be faster
> :)

Storing all of your options in a single array is usually much, much
faster than trying to store them all separately.

-Otto


More information about the wp-hackers mailing list