Someone explained me that using get_option is not productive, it's better to implement a custom function and then save the options in a single multidimensional array.
Before I thought that having an array like this one and using get_option('the_option_id', 'default_value') every time was a good way:
$options = array(
//GENERAL SETTINGS
array("name" => "General Settings",
"type" => "title"),
array("type" => "open"),
array("name" => "Option 1",
"desc" => "Description.",
"id" => "option_id_1",
"type" => "text"),
array("name" => "Option 2",
"desc" => "Description.",
"id" => "option_id_2",
"type" => "text"),
array("type" => "close"),
)
He said that it's better to call the function get_option() only one time and get everything in a custom function. Why is that, when on codex they recommend to use the simple get_option($variable, $default)?
That's a theoretical question, but feel free to post or share your codes. How do you do work about that? (Most of the option frameworks use a custom function, also).