Carob-Framework
Carob-Framework copied to clipboard
Saving Theme Options
Hi, the issue is that when I save theme options and use it editor's tinymce mode always returnes default value.
It will fall back to the option's default value if the data that you want to save for that option is not valid for that option type. Take a look at the theme options implementation in the https://github.com/yankodimitrov/Carob-Starter-Theme
it's just a text, that should be saved. I mentioned that it returns default value, not default option.
Take a look at the theme options saving implementation in the Carob Starter Theme here: https://github.com/yankodimitrov/Carob-Starter-Theme/blob/master/theme/includes/class-carob-theme-options.php#L59-L95
I have seen the implementation of saving options, you didn't understand me. When I use editor option with tinymce enabled and if I write text in visual mode not text it returns default value. If I write in text mode it saves it. This happens only in theme options panel. Try it, write something in visual mode and you'll see what I'm talking about.
Hi, have you figured this issue?