Custom theme option are not saved with customize.php?
-
Hello,
This is part of a custom theme option i use through customize
$wp_customize->add_setting( 'theme_ppr_options[rating]', //No need to use a SERIALIZED name, as
theme_mod` settings already live under one db record
array(
‘default’ => $ppr_options[‘rating’], //Default setting/value to save
‘type’ => ‘option’, //Is this an ‘option’ or a ‘theme_mod’?
‘capability’ => ‘edit_theme_options’, //Optional. Special permissions for accessing this setting.
‘transport’ => ‘postMessage’, //What triggers a refresh of the setting? ‘refresh’ or ‘postMessage’ (instant)?
)
); `But the selected value is not saved. The default values are always saved.
I also made a theme options panel under appearance>Theme options and here everthing works. Just editing theme options by customize.php doesn’t work.
- The topic ‘Custom theme option are not saved with customize.php?’ is closed to new replies.