I created a theme while back when I was new to Customizer API and for some weird reasons I named theme settings as:
$wp_customize->add_setting('thefunk_theme_options[header_color]
Instead of just header_color
and saved every setting in an array like thefunk_theme_options[header_color]
So I recently found out that it’s generating some issues, so I want to save every setting, let’s say, thefunk_theme_options[header_color]
to header_color
or thefunk_header_color
.
Now I know how I can change the settings in the Customizer. However, it will affect everyone who is currently using the theme. All the customization will be gone, so does any one know how I can import the data from the old tables and add it to the new tables?