Support » Plugin: Customizer Export/Import » Not exporting some options

  • I have a theme with a bunch of customizer options that save to options, not theme mods. I register the options in different files in my theme but they are all done the same way. It’s strange that only 1 panel worth (3 options/settings) are not being exported.

    Any way for me to debug this so I can get all my options to export correctly?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Just dug through some code on GitHub and think I found it. Seems you skip widget stuff with:

    
    // Don't save widget data.
    if ( stristr( $key, 'widget_' ) ) {
    	continue;
    }
    

    One of the settings I’m trying to export is genesis-settings[footer_widget_count] and another is genesis-settings[mobile_menu_style].

    • This reply was modified 2 months, 1 week ago by  JiveDig.

    Seems like I was able to export with:

    
    add_filter( 'cei_export_option_keys', 'maitheme_export_option_keys' );
    function maitheme_export_option_keys( $keys ) {
    	$keys[] = "genesis-settings['footer_widget_count']";
    	$keys[] = "genesis-settings['mobile_menu_style']";
    	return $keys;
    }
    

    but they didn’t import.

    Plugin Author Justin Busa

    (@justinbusa)

    Hey @jivedig! Just saw your pull request. I’ll reply there. This has been a change I’ve been meaning to make. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.