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 options are stored in
Is there another way to access those variables?
Suppose I need to access an option
my_option, which was set to autoload, multiple times in different templates (eg. once in
header.php, once in
footer.php), which method is recommended?
- Is it okay that I retrieve it from the
$GLOBALSarray(since the value is already here)
- Must I use
get_option('my_option')once and globalize the variable again
get_option('my_option')each time (which I don't see the point of doing)
- Something else