[wp-hackers] Settings pages

Ptah Dunbar pt at ptahd.com
Fri Jun 12 03:03:53 GMT 2009


If i'm creating an option using the register_setting API, is there a
mechanism for giving it an initial value or should I just keep using
add_option();?

Ptah Dunbar — pt at ptahd.com
http://ptahdunbar.com


On Thu, Jun 11, 2009 at 9:59 AM, Simon Wheatley
<simon at sweetinteraction.com>wrote:

> On Thu, Jun 11, 2009 at 1:53 PM, scribu<scribu at gmail.com> wrote:
> >
> > Check the function add_settings_field()
> >
>
> Between this and the register_settings function (Andrew describes it
> here:
> http://planetozh.com/blog/2009/05/handling-plugins-options-in-wordpress-28-with-register_setting/
> )
> I am absolutely made up. SO much easier to add and deal with settings!
>
> S
>
>
> ---
> Sweet Interaction Ltd is Registered in England/Wales, no. 6610741
> Registered office: 7 Malton Av, Manchester, M21 8AT
> _______________________________________________
> 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