Title: Does not import options array
Last modified: April 22, 2021

---

# Does not import options array

 *  [Ceylon Themes](https://wordpress.org/support/users/ceylonthemes/)
 * (@ceylonthemes)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/does-not-import-options-array/)
 * When theme settings are in options array it does not import settings

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Contributor [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * (@codersantosh)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/does-not-import-options-array/#post-14360184)
 * Hello [@ceylonthemes](https://wordpress.org/support/users/ceylonthemes/) ,
 * Can you send exported zip file download link and theme link. Also let me know
   the option name. I will test and let you know if I find anything.
 * Best Regards!
 *  Thread Starter [Ceylon Themes](https://wordpress.org/support/users/ceylonthemes/)
 * (@ceylonthemes)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/does-not-import-options-array/#post-14361023)
 * Themes are [https://wordpress.org/themes/green-shop/](https://wordpress.org/themes/green-shop/)
   and [https://wordpress.org/themes/shop-starter/](https://wordpress.org/themes/shop-starter/)
 * Install above theme and activate plugins and test import feature,
 * example options array of settings (not working),
 *     ```
       // address
       		$wp_customize->add_setting( 'ecommerce_plus_options[contact_section_address]' , array(
       		'default'    => $ecommerce_plus_options['contact_section_address'],
       		'sanitize_callback' => 'sanitize_text_field',
       		'type'=>'option'
       		));
       ```
   
 * parent theme is ecommerce-plus
 * Demo files with plugin:- [https://plugins.svn.wordpress.org/ceylon-demo-installer/trunk/includes/demo-data/](https://plugins.svn.wordpress.org/ceylon-demo-installer/trunk/includes/demo-data/)
 *  Plugin Contributor [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * (@codersantosh)
 * [5 years ago](https://wordpress.org/support/topic/does-not-import-options-array/#post-14384797)
 * Hello [@ceylonthemes](https://wordpress.org/support/users/ceylonthemes/),
 * I quickly gone through your theme code. Your theme is not storing all data on
   theme mods option but also added another option `ecommerce_plus_options`, see
   [here](https://themes.trac.wordpress.org/browser/ecommerce-plus/1.1.7/functions.php#L502).
   I think reviewer has missed it.
 * Anyway if you want to include this option for import, here is FAQ [Some option table are not exported, what is happening?](https://wordpress.org/plugins/advanced-export/#some%20option%20table%20are%20not%20exported%2C%20what%20is%20happening%3F),
   there is a code example to include your needed options. For your case, the code
   will be something like this.
 *     ```
       add_action('advanced_export_include_options','prefix_include_my_options');
        function prefix_include_my_options( $included_options ){
            $my_options = array(
                'ecommerce_plus_options',
            );
            return array_unique (array_merge( $included_options, $my_options));
        }
       ```
   
 * After adding the code on your WordPress installation( recommended using your 
   companion plugin), export the demo and try to import again. It should work.
 * Best Regards!
 *  Thread Starter [Ceylon Themes](https://wordpress.org/support/users/ceylonthemes/)
 * (@ceylonthemes)
 * [5 years ago](https://wordpress.org/support/topic/does-not-import-options-array/#post-14395489)
 * Hi [@codersantosh](https://wordpress.org/support/users/codersantosh/),
 * That is the way of using options array in instead of saving each options one 
   by one.
    It seems working now.
 * Another issue is custom widgets not importing with demo import.
 * ex: create a page with elementor, add widgets starting prefix +, export
    (Use
   ecomemrce plus theme)
 * Thanks a lot
 *  Plugin Contributor [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * (@codersantosh)
 * [5 years ago](https://wordpress.org/support/topic/does-not-import-options-array/#post-14402924)
 * Hello [@ceylonthemes](https://wordpress.org/support/users/ceylonthemes/) , Sorry
   but could not get you.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Does not import options array’ is closed to new replies.

 * ![](https://ps.w.org/advanced-import/assets/icon-256x256.png?rev=2163691)
 * [Advanced Import: One-Click Demo Import for WordPress](https://wordpress.org/plugins/advanced-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-import/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-import/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [codersantosh](https://wordpress.org/support/users/codersantosh/)
 * Last activity: [5 years ago](https://wordpress.org/support/topic/does-not-import-options-array/#post-14402924)
 * Status: not resolved