Title: Import file json redux framework
Last modified: September 1, 2016

---

# Import file json redux framework

 *  Resolved [trungjayce](https://wordpress.org/support/users/trungjayce/)
 * (@trungjayce)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/)
 * Hi
    Redux framework I use for my themes. How t can import files of Redux theme-
   config.json behalf customizer.dat file? Thanks!
 * [https://wordpress.org/plugins/one-click-demo-import/](https://wordpress.org/plugins/one-click-demo-import/)

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/import-file-json-redux-framework/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/import-file-json-redux-framework/page/2/?output_format=md)

 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-7583480)
 * Hi,
 * Redux framework import is not yet supported in this plugin.
 * Some of the users already asked for it (redux framework), so if more people will
   show interest in it, then we might integrate it in the plugin.
 * I will close this ticket for now, but I would invite others to leave a comment
   here, if they want the redux import in this plugin.
 * Have a nice day!
 *  [Shawn Hayes](https://wordpress.org/support/users/sharewebdesign/)
 * (@sharewebdesign)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8253707)
 * [@capuderg](https://wordpress.org/support/users/capuderg/), great work on the
   plugin!! I just started testing with it yesterday and really like what I have
   seen so far.
 * I am using Redux Framework in the theme I am developing and would love to see
   this plugin support it.
 * [@trungjayce](https://wordpress.org/support/users/trungjayce/), for now I am 
   using the “pt-ocdi/after_import” hook to make this work. Just use the code below
   in your functions.php…
 *     ```
       function your_prefix_after_import() {
       	$json = get_template_directory().'/includes/demo-data/redux_options_your_file.json';
       	$json_data = file_get_contents( $json );
       	$result = json_decode($json_data, true);
       	$redux_framework = ReduxFrameworkInstances::get_instance('your_opt_name');
       	$redux_framework->set_options($result);
       }
       add_action('pt-ocdi/after_import', 'your_prefix_after_import');
       ```
   
 * Obviously change the file name and Redux Framework option name to your own.
 * I haven’t tested much, but seems to work well.
 * Hope this helps.
    -  This reply was modified 9 years, 7 months ago by [Shawn Hayes](https://wordpress.org/support/users/sharewebdesign/).
      Reason: Didn't want to create confusion
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8253758)
 * Hi [@sharewebdesign](https://wordpress.org/support/users/sharewebdesign/),
 * thanks for sharing this with others!
 * There is still no short-term plan for Redux Framework support, but we will add
   it eventually…
 * Take care!
 *  [Ken](https://wordpress.org/support/users/kronomia/)
 * (@kronomia)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8409265)
 * Hello!
 * I would love to see a Redux Framework support for this plugin where it allows
   us to import the Redux options (.Json) file.
 * Thank you very much.
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8410966)
 * Hi,
 * yeah, I think we will add it in the next version of the plugin.
 * Thank you all, for letting us know about this feature request.
 * Take care!
 *  [Uranbold](https://wordpress.org/support/users/uranbold/)
 * (@uranbold)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8427254)
 * Waiting for this feature…
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8430747)
 * Hi,
 * working on the new version… Should be out in a week or two.
 * Take care!
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8503818)
 * Hi everyone!
 * We are close to the release of version 2.0.0, where we also add the support for
   Redux framework.
 * Before we release it, I would like to get some feedback/testing from you. Please
   test this release candidate for the version 2.0.0: [https://dl.dropboxusercontent.com/u/14641788/OCDI/one-click-demo-import-2.0.0-RC.zip](https://dl.dropboxusercontent.com/u/14641788/OCDI/one-click-demo-import-2.0.0-RC.zip)
 * To add predefined import files and option name for Redux, you have to use the`
   pt-ocdi/import_files` filter with the following data structure:
 *     ```
       function ocdi_import_files() {
       	return array(
       		array(
       			'import_file_name'           => 'Demo Import 2',
       			'import_file_url'            => 'http://www.your_domain.com/ocdi/demo-content2.xml',
       			'import_widget_file_url'     => 'http://www.your_domain.com/ocdi/widgets2.json',
       			'import_customizer_file_url' => 'http://www.your_domain.com/ocdi/customizer2.dat',
       			'import_redux'               => array(
       				array(
       					'file_url'    => 'http://www.your_domain.com/ocdi/redux.json',
       					'option_name' => 'redux_option_name',
       				),
       				array(
       					'file_url'    => 'http://www.your_domain.com/ocdi/redux2.json',
       					'option_name' => 'redux_option_name_2',
       				),
       			),
       			'import_preview_image_url'   => 'http://www.your_domain.com/ocdi/preview_import_image2.jpg',
       			'import_notice'              => __( 'A special note for this import.', 'your-textdomain' ),
       		),
       	);
       }
       add_filter( 'pt-ocdi/import_files', 'ocdi_import_files' );
       ```
   
 * If you are using local files (inside the theme), use this example:
 *     ```
       function ocdi_import_files() {
       	return array(
       		array(
       			'import_file_name'             => 'Demo Import 2',
       			'local_import_file'            => trailingslashit( get_template_directory() ) . 'ocdi/demo-content2.xml',
       			'local_import_widget_file'     => trailingslashit( get_template_directory() ) . 'ocdi/widgets2.json',
       			'local_import_customizer_file' => trailingslashit( get_template_directory() ) . 'ocdi/customizer2.dat',
       			'local_import_redux'           => array(
       				array(
       					'file_path'   => trailingslashit( get_template_directory() ) . 'ocdi/redux.json',
       					'option_name' => 'redux_option_name',
       				),
       				array(
       					'file_path'   => trailingslashit( get_template_directory() ) . 'ocdi/redux2.json',
       					'option_name' => 'redux_option_name_2',
       				),
       			),
       			'import_preview_image_url'     => 'http://www.your_domain.com/ocdi/preview_import_image2.jpg',
       			'import_notice'                => __( 'A special note for this import.', 'your-textdomain' ),
       		),
       	);
       }
       add_filter( 'pt-ocdi/import_files', 'ocdi_import_files' );
       ```
   
 * There are also some other changes and improvements, but most notable one is the
   different layout for multiple predefined demo imports (we replaced the dropdown
   select, with a nice grid layout).
 * Please test it out and let me know how it goes! Thanks!
 * Take care!
 *  [beke_ro](https://wordpress.org/support/users/beke_ro/)
 * (@beke_ro)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8526705)
 * Hi,
    Thank yor for this plugin!! I tested version 2.0.0 but I get this error :
 * —Importing Redux settings—
    The Redux plugin is not activated, so the Redux import
   was skipped!
 * Info:
 * 1.I have Redux Framework included in my Theme.
    2.I changed option_name with 
   my theme option_name.
 * Thanks,
    Beke
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8528307)
 * Hi,
 * thanks for this bug report!
 * We do not use Redux framework, so this testing is much appreciated! 🙂
 * The check for active Redux is currently only a check for this class “ReduxFrameworkPlugin”.
   I didn’t know, you can integrate it into the theme :S
 * I’ll fix this by the end of this week and I’ll send you a new zip file to test,
   if you will be so kind of course 🙂
 * Take care!
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8534932)
 * Hi,
 * Here is the latest release candidate: [https://dl.dropboxusercontent.com/u/14641788/OCDI/OCDI-v2.0.0-RC3.zip](https://dl.dropboxusercontent.com/u/14641788/OCDI/OCDI-v2.0.0-RC3.zip)
 * [@beke_ro](https://wordpress.org/support/users/beke_ro/) Could you please test
   it again and let me know, if it works ok? I’m planning to make the official update
   tomorrow.
 * Thanks!
 *  [beke_ro](https://wordpress.org/support/users/beke_ro/)
 * (@beke_ro)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8535132)
 * Hi,
    Perfect! Everything is OK!!! Thanks, Beke
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8535178)
 * Great, [@beke_ro](https://wordpress.org/support/users/beke_ro/) thanks for the
   test!
 *  Plugin Author [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * (@capuderg)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8537451)
 * The update is out! Version 2.0.0 is available for download! 🙂
 *  [Shawn Hayes](https://wordpress.org/support/users/sharewebdesign/)
 * (@sharewebdesign)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/#post-8619704)
 * [@capuderg](https://wordpress.org/support/users/capuderg/), You da Man, Man!!
   🙂
 * Thank you for all your hard work on this. Really appreciate it!!
 * Best regards,
    Shawn

Viewing 15 replies - 1 through 15 (of 18 total)

1 [2](https://wordpress.org/support/topic/import-file-json-redux-framework/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/import-file-json-redux-framework/page/2/?output_format=md)

The topic ‘Import file json redux framework’ is closed to new replies.

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

 * 18 replies
 * 7 participants
 * Last reply from: [Gregor Capuder](https://wordpress.org/support/users/capuderg/)
 * Last activity: [9 years, 2 months ago](https://wordpress.org/support/topic/import-file-json-redux-framework/page/2/#post-8826500)
 * Status: resolved