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

Alan J Castonguay alan at verselogic.net
Thu Nov 6 22:17:22 GMT 2008


This is a question which I also would like to see answered. I have  
seen arguments both ways, and it seems like options.php is supposed  
to do magic for options-updates, but this isn't used by a lot of the  
plugins I've looked at. Is there any consensus on best-practice for  
options updating?

-Alan


On 6-Nov-08, at 4:59 PM, Otto wrote:

> 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
>>
> _______________________________________________
> 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