« Return to Thread: Settings pages

Re: Settings pages

by Ptah Dunbar-2 :: Rate this Message:

Reply to Author | View in Thread

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@...
http://ptahdunbar.com


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

> On Thu, Jun 11, 2009 at 1:53 PM, scribu<scribu@...> 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@...
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>
_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

 « Return to Thread: Settings pages