One Click Demo Import / Import & Export

  • first release
    2016-03-25
  • last updated
    2020-07-21
  • current version
    2.6.1
  • requires WP version
    4.0
  • requires PHP version
    5.3.2
  • tested up to
    5.4.4
  • download count
    7 325 757
  • rating total
    65
86
%
65 users
5 stars
4 stars
3 stars
2 stars
1 star
one-click-demo-import-banner-772×250.png

One Click Demo Import

The best feature of this plugin is, that theme authors can define import files in their themes and so all you (the user of the theme) have to do is click on the “Import Demo Data” button.

Are you a theme author?

Setup One Click Demo Imports for your theme and your users will thank you for it!

Follow this easy guide on how to setup this plugin for your themes!

Are you a theme user?

Contact the author of your theme and let them know about this plugin. Theme authors can make any theme compatible with this plugin in 15 minutes and make it much more user-friendly.

Where can I find the contact of the theme author?

This plugin will create a submenu page under Appearance with the title Import demo data.

If the theme you are using does not have any predefined import files, then you will be presented with three file upload inputs. First one is required and you will have to upload a demo content XML file, for the actual demo import. The second one is optional and will ask you for a WIE or JSON file for widgets import. You create that file using the Widget Importer & Exporter plugin. The third one is also optional and will import the customizer settings, select the DAT file which you can generate from Customizer Export/Import plugin (the customizer settings will be imported only if the export file was created from the same theme). The final one is optional as well and will import your Redux framework settings. You can generate the export json file with the Redux framework plugin.

This plugin is using the improved WP import 2.0 that is still in development and can be found here: https://github.com/humanmade/WordPress-Importer.

All progress of this plugin’s work is logged in a log file in the default WP upload directory, together with the demo import files used in the importing process.

NOTE: There is no setting to “connect” authors from the demo import file to the existing users in your WP site (like there is in the original WP Importer plugin). All demo content will be imported under the current user.

Do you want to contribute?

Please refer to the official GitHub repository of this plugin.

Changelog

2.6.1

Release Date – 21 July 2020

  • Fixed Elementor import issues.

2.6.0

Release Date – 21 July 2020

  • Improved code execution: not loading plugin code on frontend.
  • Fixed incorrect post and post meta import (unicode and other special characters were not escaped properly).
  • Fixed error (500 – internal error) for Widgets import on PHP 7.x.
  • Fixed PHP notices for manual demo import.
  • Fixed PHP warning if set_time_limit function is disabled.
  • Fixed links for switching manual and predefined import modes.

2.5.2

Release Date – 29 July 2019

  • Improved documentation and code sample
  • Added pt-ocdi/pre_download_import_files filter
  • Added two action hooks to plugin-page.php
  • Bumped Tested up to tag

2.5.1

Release Date – 25 October 2018

  • Fix missing translation strings

2.5.0

Release Date – 8 January 2018

  • Add OCDI as a WordPress import tool in Tools -> Import,
  • Add switching to the manual import, if the theme has predefined demo imports,
  • Fix text domain loading

2.4.0

Release Date – 23 August 2017

  • Add WP-CLI commands for importing with this plugin,
  • Fix conflict with WooCommerce importer

2.3.0

Release Date – 28 May 2017

  • Add preview button option to the predefined demo import items,
  • Add custom JS event trigger when the import process is completed,
  • Add custom filter for plugin page title,
  • Remove content import as a required import. Now you can make separate imports for customizer, widgets or redux options.
  • Fix custom menu widgets imports, the menus will now be set correctly.

2.2.1

Release Date – 3 April 2017

  • Fix image importing error for server compressed files,
  • Fix remapping of featured images,
  • Fix custom post type existing posts check (no more multiple imports for custom post types).

2.2.0

Release Date – 5 February 2017

  • Add ProteusThemes branding notice after successful import,
  • Fix after import error reporting (duplicate errors were shown),
  • Fix some undefined variables in the plugin, causing PHP notices.

2.1.0

Release Date – 8 January 2017

  • Add grid layout import confirmation popup options filter,
  • Fix term meta data double import,
  • Fix WooCommerce product attributes import.

2.0.2

Release Date – 13 December 2016

  • Fix issue with customizer options import

2.0.1

Release Date – 12 December 2016

  • Fix issue with some browsers (Safari and IE) not supporting some FormData methods.

2.0.0

Release Date – 10 December 2016

  • Add new layout for multiple predefined demo imports (a grid layout instead of the dropdown selector),
  • Add support for Redux framework import,
  • Change the code structure of the plugin (plugin rewrite, namespaces, autoloading),
  • Now the whole import (content, widgets, customizer, redux) goes through even if something goes wrong in the content import (before content import errors blocked further import),
  • Add pt-ocdi/before_content_import action hook, that theme authors can use to hook into before the content import starts,
  • Fix frontend error reporting through multiple AJAX calls,
  • Fix post formats (video/quote/gallery,…) not importing,
  • Fix customizer import does not save some options (because of the missing WP actions – these can be enabled via a filter, more in the FAQ section).

1.4.0

Release Date – 29 October 2016

  • Add support for WP term meta data in content importer,
  • Fix the issue of having both plugins (OCDI and the new WP importer v2) activated at the same time.

1.3.0

Release Date – 1 October 2016

  • Import/plugin page re-design. Updated the plugin page styles to match WordPress (thanks to Oliver Juhas).

1.2.0

Release Date – 9 July 2016

  • Now also accepts predefined local import files (from theme folder),
  • Fixes PHP fatal error on plugin activation, for sites using PHP versions older then 5.3.2 (added admin error notice),
  • Register log file in wp-admin -> Media, so that it’s easier to access,
  • No more “[WARNING] Could not find the author for …” messages in the log file.

1.1.3

Release Date – 17 June 2016

  • Updated plugin design,
  • Changed the plugin page setup filter name from pt-ocdi/plugin-page-setup to pt-ocdi/plugin_page_setup (mind the underscore characters instead of dashes).

1.1.2

Release Date – 12 June 2016

  • An ‘import notice’ field has been added to the predefined demo import settings. This notice is displayed above the import button (it also accepts HTML),
  • Now displays proper error message, if the file-system method is not set to “direct”,
  • This plugin is now compatible with the new Humanmade content importer plugin,
  • Added a filter to the plugin page creation, so that theme authors can now change the location of the plugin page (Demo data import) and some other parameters as well.

1.1.1

Release Date – 22 May 2016

  • Preview import images can now be defined for multiple predefined import files (check FAQ “How to predefine demo imports?” for more info),
  • You can now also import customizer settings.

1.1.0

Release Date – 14 May 2016

  • Content import now imports in multiple AJAX calls, so there should be no more server timeout errors,
  • The setting for generation of multiple image sizes in the content import is again enabled by default,
  • Plugin textdomain was loaded, so that translations can be made.

1.0.3

Release Date – 27 April 2016

  • Added filter to enable image regeneration,
  • Added filter to change the plugin intro text,
  • Added action to execute custom code before widget import,
  • Disabled author imports.

1.0.2

Release Date – 15 April 2016

  • Monkey fix for WP version 4.5. – disabled generation of multiple image sizes in the content import.

1.0.1

Release Date – 2 April 2016

Small code fixes:

  • Fixed undefined variable bug,
  • Fixed naming of downloaded files and their filters.

1.0.0

Release Date – 25 March 2016

  • Initial release!
Download different versions
Screenshot gallery
one-click-demo-import-screenshot-1.png one-click-demo-import-screenshot-2.png one-click-demo-import-screenshot-3.png