Most of wordpress plugin writer choose the new table for saving data for plugin setting and any setting in wordpress plugin. I recommend to use the update option for saving data in wordpress database.
There is ready made option is provided by wordpress to save custom data in there table.
Here with very simple code I will show how use save the data in wordpress database.
< ?php $variable = array(‘var1′ => $_POST['var1'], ‘var2′ => $_POST['var2']); update_option(‘myPlugin_var1′, serialize($variable)); get_option(‘myPlugin_var1′) == “” ? “” : $new = unserialize(get_option(‘myPlugin_var1′)); ?> You should save data in simple variable format or I suggest always save data in array format.
For more reference you can check the following URL
http://phpxref.com/xref/wordpress/wp-admin/options.php.source.html
Incoming search terms:
- how to upgrade a wordpress plugin and keep the settings
- how to use wordpress update api
- save data from wordpress to ruby
- update_option wordpress
- wordpress plugin update option
- wordpress tutorial admin update option






Pingback: Wordpress Plugins » how to use the update option in wordpress plugin | Wordpressapi …
where can i find more info?
Hi, I’m very interested in Linux but Im a Super Newbie and I’m having trouble deciding on the right distribution for me (Havent you heard this a million times?) anyway here is my problem, I need a distribution that can switch between reading and writing in English and Japanese (Japanese Language Support) with out restarting the operating system.
I REALLY liked your post and blog! It took me a minute bit to find your site…but I bookmarked it. Would you mind if I posted a link back to your post?
Good! Thank you! I always wanted to write in my site something like that. Can I take part of your post to my blog?
Hey, why in this case you use the serialize PHP function instead of saving the array as it???
Great read. Thanks for the info!
Nice post! You truly have a wonderful way of writing which I find captivating! I will definitely be bookmarking you and returning to your blog. In fact, your post reminded me about a strange thing that happened to me the other day. I’ll tell you about that later…
Hello, this is my first time i visit here. I found so many interesting in your blog especially on how to determine the topic. keep up the good work.
Awesome post. I so good to see someone taking the time to share this information
I was just having a conversation over this I am glad I came across this it cleared some of the questions I had.
Interesting read, perhaps the best article iv’e browse today. We learn everyday cheers to you!
This post makes a lot of sense !