WordPress plugin intelligence profile

Pure Demo Importer

Drop-in demo importer/exporter for WordPress themes.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.0.12
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 5.6 · PHP 7.4
Directory statusactive
Last directory update23 Sept 20261mo ago
Active installations60Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Pure Demo Importer version 1.0.12 as active, updated 1mo ago and tested up to WordPress 7.1.

Overview

About this plugin

Pure Demo Importer adds a Demo Importer admin page to any WordPress theme that registers itself with the plugin. It can:

  • Export the current site’s content (content.xml WXR), widgets (widgets.wie) and customizer settings (customizer.dat) into a single ZIP.
  • Import any of the above on a fresh WordPress install, with auto-install and activation of required plugins from the WordPress.org repo.
  • Show a live system-requirements check before import with copy-paste fix instructions.
  • Optionally reset the site (delete posts/widgets/customizer mods) before importing.

The plugin itself ships no demo config. Themes and core plugins register their demos by hooking the pure_demo_importer_register action — see “Registering demos” below.

Registering demos

The plugin fires a pure_demo_importer_register action on after_setup_theme:20. Hook into it and call ThemePure_Demo_Importer::register() with your config:

add_action( 'pure_demo_importer_register', function () { ThemePure_Demo_Importer::register( array( 'theme_name' => 'My Theme', 'theme_slug' => 'my-theme', // drives the filter name 'menu_slug' => 'my-theme-demo', 'menu_title' => 'My Theme Importer', 'menu_icon' => 'dashicons-download', 'demos' => require __DIR__. php', ) ); } );

Filter hook: extending the demos array

After the initial::register() call, the demos array is filterable per theme via the filter {theme_slug}_demo_importer_demos. The filter name is built from your theme_slug — if you registered with 'theme_slug' => 'consora', the filter is consora_demo_importer_demos. The filter passes two args: ( array $demos, array $config ).

php config.

When the filter fires

Inside ThemePure_Demo_Importer::get_demos() — every time the admin page (or any AJAX step) reads the demos array. g. php, plugin bootstrap, after_setup_theme ).

Where to add the filter callback

Location

When to use

php

Most demos are static — this is just a small extension.

php )

Keep dynamic / conditional demos isolated from the static config.

php )

The extra demos are project-specific and shouldn’t ship with the theme.

Example 1: Append an extra demo (most common)

php, after the theme’s register call:

net/consora/', ); return $demos; }, 10, 2 );

Example 2: Remove a demo conditionally

g. WooCommerce-only demos):

add_filter( 'consora_demo_importer_demos', function ( $demos, $config ) { // Hide the WooCommerce demo when Woo isn't active. if (! == 'home-05'; } ) ); } return $demos; }, 10, 2 );

Example 3: Mutate every demo at once

Switch the CDN host across every demo, or force-add a plugin to every demo’s required-plugins list:

add_filter( 'consora_demo_importer_demos', function ( $demos, $config ) { foreach ( $demos as &$demo ) { // Force-add a plugin to every demo. $demo['required_plugins'][] = array( 'slug' => 'wordpress-seo', 'name' => 'Yoast SEO', ); // Swap the CDN host. net', $demo['content_xml_url'] ); } } unset( $demo ); return $demos; }, 10, 2 );

Replacing the demos array entirely

g. fetched from a remote API at boot).

Other available hooks

Lifecycle actions

  • themepure_di_before_import — fires before reset / import begins. Args: ( $demo ).
  • themepure_di_after_import — fires once all imports complete. Args: ( $demo ). Use for WooCommerce page IDs, custom kits, theme options.
  • themepure_di_before_step / themepure_di_after_step — per-step hooks. Args: ( $step, $demo, $arg ).

Reset

  • themepure_di_reset_preserve_plugins — filter the list of plugin basenames to keep active across a reset. Default: [ 'pure-demo-importer/pure-demo-importer.php' ]. Append any plugin that registers demos so the demos remain visible after the post-reset page reload.

Downloader

  • themepure_di_download_timeout — remote download timeout in seconds (default 300).
  • themepure_di_http_bypass_args — tweak browser-style headers used when a host 403s the default WP user-agent.

WXR import

  • themepure_di_wp_import_fetch_attachments — skip media sideload during WXR import (default true).
  • themepure_di_wp_import_allow_create_users — allow WP_Import to create users from XML authors (default false).

Logger

-

themepure_di_logging_enabled — disable site-wide import logging:

add_filter( ‘themepure_di_logging_enabled’, ‘__return_false’ );

log and rotated at ~2 MB. The random suffix is generated once per site so the log cannot be fetched by guessing its URL.

External services

Pure Demo Importer ships with zero demos configured out of the box ( demos => array() ) and makes no external connections on its own. It is a drop-in engine: a WordPress theme or plugin integrates with it by registering one or more “demo” entries (each with its own name and URLs) via the pure_demo_importer_register action.

Once a theme has registered real demos, the following outbound requests can happen — always as the direct result of the site administrator clicking a button in the Pure Demo Importer admin screen, never automatically or in the background:

  • Demo content download. When the admin clicks “Import” for a specific demo, the plugin downloads that demo’s content files (WXR XML, widgets.wie /JSON, Customizer.dat, an optional Elementor kit.zip ) from the URL(s) the integrating theme configured for that demo. This is a plain HTTP GET of a static file; no site data, personal data, or tracking parameters are sent — only a standard request for the file at that URL. The host is whatever demo server the theme author operates or points to; this plugin does not operate its own demo-content service and cannot provide a single Terms of Service / Privacy Policy link, since the host is defined entirely by the integrating theme, not by this plugin.
  • Plugin installation. When the admin clicks “Install” next to a recommended plugin, the plugin is resolved and downloaded from the official WordPress.org Plugin Directory using WordPress core’s own plugins_api() and Plugin_Upgrader — the same mechanism used by Add New Plugin in wp-admin. See https://wordpress.org/about/privacy/ for WordPress.org’s own privacy policy. No plugin code is ever installed from any other source.
  • WooCommerce variation-swatch image (optional). If the integrating theme’s demo config includes a variation_settings_url, the plugin fetches that single URL after import to configure WooCommerce product-variation swatches. Same nature as the demo content download above: a static file fetch to a URL the theme author configured, triggered only by the admin’s own import action.

No analytics, telemetry, or usage tracking of any kind is performed by this plugin.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • demo importer
  • one click import
  • starter sites
  • wxr
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 5.6 · PHP 7.4
Update activity23 Sept 20261mo ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.