8
votes
1answer
102 views

How come `wp_options` table does not have an index on `autoload`?

In the beginning of each page served by WordPress, there is a MySQL call to fetch options: SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; Because there's no index on ...
0
votes
0answers
372 views

Using wp_nonce_field to update multiple fields

I wrote a simple plugin that before now only had one option so the code below calling wp_nonce_field worked fine. However, now that I've had a second option it seems that the code below only allows ...
1
vote
1answer
22 views

Editing options pages?

I'm trying to find a way of adding a single checkbox to one of the existing options pages, most likely options-reading.php programmatically. Unfortunately, I haven't found any good references on this. ...
0
votes
1answer
183 views

wordpress how to query wp_options table

I need to make an SQL call to find all records in wp_options matching a select statement. How do I query the table? My script already has these resources called... ...
2
votes
1answer
415 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
433 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'? ...