The Options API is a simple and standardized way of storing data in the database. The API makes it easy to create, access, update, and delete options.

learn more… | top users | synonyms

2
votes
1answer
1k views

How to properly sanitize strings for update_option()

I've tried to import an option value via update_options($name, $value) where $value has special characters (like apostrophe's for example) and I've noticed that the apostrophe gets stripped out of the ...
0
votes
1answer
917 views

Decontruct serialized data array from wp_options

I'm trying to decontruct (and recreate) a serialized option value in wp_options called 'my_options' How would I build the array to recreate this option_value that currently exists for 'my_options'? ...
1
vote
1answer
163 views

Classes and functions involved in serialization and unserialization

I want to know all the classes and functions(individual .php files) in a wordpress installation that handle serialization and unserialization.
0
votes
3answers
686 views

Default plugin config to override wp_options?

I have a few plugins that I always set the configuration for exactly the same way. Every time I create a new site, the same plugins go in, and the same amount of time is needed to set them up. Would ...
0
votes
1answer
1k views

Plugin to import/export wp_options

I'm considering building a plugin which can export and import a site's custom options settings. On export, it simply pulls all of the custom options from wp_options and create a zip file of them ...
2
votes
1answer
69 views

Environment Specific Options Token

Is it possible to add a token to any wp-option that could be replaced on get where the token being defined in a plugin’s option or the configure file? E.g. ...
0
votes
1answer
1k views

How do I retrieve multiple values from a multidimensional array in wp_options?

I'm just starting to store data in multi-dimensional arrays in wp_options and I need some help to retrieve some data... My data is below and is stored as option_name "my_category_fields" I need to ...
5
votes
1answer
2k views

Best practices for a Style/CSS based theme options page?

I would like to create a theme options page based only on changing the site wide CSS styling. For instance body/container background colors, font-sizes, font colors, etc. I have accomplished this by ...
3
votes
2answers
3k views

Transient RSS feeds in wp_options not removed automatically?

I just noticed 55.000 entries(!) in my wp_options table. I had not been there for a while. So I ran: delete from `wp_options` where `option_name` like '_transient_timeout_rss%' delete from ...