Theme Customization API options on install

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'];

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)