Use default values when you fetch the settings. Never store defaults in the database.
Example:
$defaults = array (
'foo' => 'bar'
);
$options = get_option( 'my_theme_options', $defaults );
echo $options['foo'];
Use default values when you fetch the settings. Never store defaults in the database.
Example:
$defaults = array (
'foo' => 'bar'
);
$options = get_option( 'my_theme_options', $defaults );
echo $options['foo'];