Tagged Questions
3
votes
1answer
62 views
Performance with autoload and the options table
I am playing around with the autoload column of the options table. I didn't find much information about how the autoloaded values are used. I tried a print_r($GLOBALS) and saw that the autoloaded ...
0
votes
1answer
52 views
My first plugin doesn't save the data in options
This is my entire code. It doesn't save the data I enter on the plugin settings page. I don't have a clue on why this happens! Can somebody please help me?
<?php // add the admin options page
...
0
votes
1answer
58 views
Ways of dealing with nested arrays within option
I stumbled upon one problem regarding too complicated(at least in my point of view) data structures stored in option field.
Right now I have an array of collections and within each other there is ...
0
votes
2answers
124 views
Add Option if Not Exists
I need to see if an option, and if does, get the value. If not, I need to add it.
The Codex provides:
<?php
$option_name = 'myhack_extraction_length' ;
$new_value = '255' ;
if ( get_option( ...
-1
votes
1answer
137 views
Template file location for get_option() [closed]
Using the get_option() function to retrieve custom theme options seems to only work when placing
$options = get_option('plugin_options');
within index.php , yet all my references for using the ...
8
votes
2answers
790 views
Are all options loaded to memory on each request?
Are all options variables fetched from the database and loaded to cache on each request?
