[wp-hackers] Need help with: coding new Plugin options

Otto otto at ottodestruct.com
Thu Nov 6 21:59:27 GMT 2008


Why would one want to point to options.php? Is there any particular
advantage of that?

I've always made my form point to itself, using action="".


On Thu, Nov 6, 2008 at 3:43 PM, Malaiac <malaiac at gmail.com> wrote:
> about plugins options, don't forget to whitelist them if you want
> options.php to save them
>
> function add_yourplugin_options($whitelist_options)
>  {
>  $whitelist_options['yourplugin'] =
> array('yourplugin_option1','yourplugin_option2');
>  return $whitelist_options;
>  }
> add_filter('whitelist_options', 'add_yourplugin_options');
>
> that is, if your plugin options form is pointed to options.php (which
> should be the case in most plugins)
>
> M
> _______________________________________________
> 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