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

Daiv Mowbray daiv at daivmowbray.com
Thu Nov 6 20:49:31 GMT 2008


Thanx guys for the feedback,


You are of course correct, thanx Austin.
On Nov 5, 2008, at 1:28 PM, Austin Matzko wrote:

> You have this:
>
>>                                       $ssmNewOptions =
>> $this->savedefaultAdminOptions();
>
> which doesn't make much sense, since the method called doesn't  
> return anything:



Ozh, the functions which you refer are from the plugin builder:
http://www.wp-fun.co.uk/wizzards/fun-with-plugins/
It reads to see if the options are there, if not they write the  
default into the ops table.
If you know another way to check for options ... all ears.

On Nov 5, 2008, at 1:26 PM, Ozh wrote:
> a comment regarding your first
> function: making get_option then an update_option on each plugin start
> is a waste. Read options, sure, but why rewrite them?



And Yes Viper, I have read the manual.


----------
Daiv Mowbray
daiv at daivmowbray.com
----------




More information about the wp-hackers mailing list