[wp-hackers] Theme Options as serialized Array

Mike Schinkel mikeschinkel at newclarity.net
Tue May 25 02:26:09 UTC 2010

Just use get_option() and update_option().  They handle serializing and deserializing arrays.


On May 24, 2010, at 10:17 PM, 24/7 wrote:

> Hi list,
> i'm trying to add options for a theme as a serialized array. Adding
> these options (the first time via add_option) works fine, but i got
> problems with updating the array. When i looked at several tutorials i
> found out that most people use the settings API to update the array.
> But at the codex i saw that get_settings is depraceted and replaced by
> get_option. Is there some connetion between the settings API and
> get_settings, or, to say it in other words: Is the settings API
> depracated too, and is there another (maybe better) way?
> Thanks!
> Regards,
> -K.
> _______________________________________________
> 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