A safe way of adding a named option/value pair to the options database table.

learn more… | top users | synonyms

0
votes
2answers
229 views

Passing array in add_option()

I have to create a option page in my custom theme wordpress. here is is a sample of code <?php function bguru_register_settings(){ $default_options=array( ...
0
votes
2answers
94 views

update_option using variable name

Title may not be clear but I'm using update_option($my_option, $new_order); and for some reason it would not work but if instead I change to update_option('my-option-name' $new_order); it works. I ...
-1
votes
1answer
41 views

illegal offset in option add

I downloaded a plugin to dissect that I could use to learn the settings api with. It's a simple background uploader and as you can see fairly straight forward. When trying to recreate it however using ...
0
votes
0answers
19 views

Update options and then display it all in a foreach loop

I am really new in wordpress development but not new in coding, what i would like to do is to make my own countdown wp plugin. The problem as a beginner is that i dont understand how works the wp ...
0
votes
0answers
36 views

Custom options page, add_options_page deprecated?

I'm trying to create a page in my theme to allow users to add generic info (phone numbers etc) I followed a tutorial and thought I had something good but it turns out part of it is deprecated. So ...