Problems WIth Developing Plugin
-
I am having problems getting get_option to work the way I would think it does. When I register my plugin, I use the following to add the 2 options for my plugin.
add_option('wordpress_giveaway_plugin_require_registration', true, __('Entrant Must Be Registered?'),'yes'); add_option('wordpress_giveaway_plugin_daily_entry', true, __('Entrant Can Only Enter Once Per Day?'),'yes');
Which does enter the values into the options table as I would expect it to. But when I go to the options page for the plugin I do
<?php if(get_option('wordpress_giveaway_plugin_daily_entry')) echo " checked";?>
which should show checked by default. But it do not. So if I check the box and update options, it will show as checked until I close the browser, then it is back to unchecked.
Thank you in advance.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problems WIth Developing Plugin’ is closed to new replies.