Theme Demo Import
by themely 3 (4 reviews)

Theme Demo Import

Quickly import demo content, widgets and settings in one click. Made for theme authors to simplify importing demo content for their users.

Theme Demo Import ranks #3,201 among WordPress.org plugins with 5,000+ active installations, is #505 of 8,548 in the Customization category, a 3/5 rating from 4 reviews, and was last updated Jul 3, 2024. Data from WordPress.org, refreshed twice daily — see methodology.

Tested up to WP 6.5 (Current: 7.1)
vtrunk Current Version vtrunk
Updated 2 years ago Last Update on 03 Jul, 2024
Refreshed 12 hours ago Last Refreshed on
#505 of 8,548 in Customization Top 5% by installs No update in over a year
View on WordPress.org
Rank
#3,201
No change
Active Installs
5K+
-6.4%
KW Avg Position
N/A
No change
Downloads
258.4K
+2 today
Support Resolved
0%
No change
Rating
60%
Review 3 out of 5
3 (4 reviews)

Next Milestone 6K

Total Progress 33.4%
5K+ 6K+
233
Ranks to Climb
-
Growth Needed
8,000,000
Active Installs
Pro

Unlock Exact Install Count

See the precise estimated active installs for this plugin, calculated from real-time ranking data.

  • Exact install estimates within tiers
  • Track install growth over time
  • Milestone progress predictions
Upgrade to Pro
Need 666 more installs to reach 6K+

Rank Changes

3,041 3,121 3,201 3,281 3,361 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
3,041 3,121 3,201 3,281 3,361 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
Current #3,201
Change
Best #

Upgrade to Pro

Unlock 30-day and 90-day rank history charts with a Pro subscription.

Upgrade Now

Active Installs Growth

Active Installs 0,000,000+
Growth +0.0%
Peak 0,000,000

Downloads Growth

0 10 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
0 10 01-09-2026 02-09-2026 03-09-2026 04-09-2026 05-09-2026 06-09-2026 07-09-2026 08-09-2026 09-09-2026 10-09-2026 11-09-2026 12-09-2026 13-09-2026 14-09-2026 15-09-2026 16-09-2026
Downloads
Growth
Peak

Upgrade to Pro

Unlock 30-day, 90-day, and yearly download history charts with a Pro subscription.

Upgrade Now

Reviews & Ratings

3.0
4 reviews
Overall 60%
5
2 (50%)
4
0 (0%)
3
0 (0%)
2
0 (0%)
1
2 (50%)

Security History

Source: WPVulnerability

3 known vulnerabilities on record · 1 in the last 24 months · checked 2 days ago

  1. UNPATCHED

    Theme Demo Import [theme-demo-import] <= 1.1.3 (unfixed + closed)

    CVE-2026-13157 · No fix released

  2. UNPATCHED

    Theme Demo Import [theme-demo-import] <= 1.1.3 (unfixed + closed)

    CVE-2023-28170 · No fix released

  3. Theme Demo Import [theme-demo-import] < 1.1.1 (closed)

    CVE-2022-1538 · Fixed in v1.1.1

TL;DR

AI summary of the plugin's readme

This plugin is for theme authors and users who need to set up a new WordPress theme quickly. It solves the problem of manually recreating demo content, widgets, and settings by letting users import a theme's demo XML, widgets, and customizer settings in one click.

  • One-click demo content import
  • Import via APPEARANCE menu page
  • Upload demo content XML file
  • Import widgets from WIE or JSON file
  • Import customizer settings from DAT file
  • Supports predefined theme import files
  • Manual file upload fallback option

Frequently Asked Questions

Common questions about Theme Demo Import

You will find the import page in wp-admin -> Appearance -> Import Demo Content.
The files used in the demo import will be saved to the default WordPress uploads directory. An example of that directory would be: ../wp-content/uploads/2016/03/. The log file will also be registered in the wp-admin -> Media section, so you can access it easily.
This question is for theme authors. To predefine demo imports, you just have to add the following code structure, with your own values to your theme (using the theme-demo-import/import_files filter): function TDI_import_files() { return array( array( 'import_file_name' => 'Demo Import 1', 'import_file_url' => 'http://www.your_domain.com/tdi/demo-content.xml', 'import_widget_file_url' => 'http://www.your_domain.com/tdi/widgets.json', 'import_customizer_file_url' => 'http://www.your_domain.com/tdi/customizer.dat', 'import_preview_image_url' => 'http://www.your_domain.com/tdi/preview_import_image1.jpg', 'import_notice' => __( 'After you import this demo, you will have to setup the slider separately.', 'your-textdomain' ), ), array( 'import_file_name' => 'Demo Import 2', 'import_file_url' => 'http://www.your_domain.com/tdi/demo-content2.xml', 'import_widget_file_url' => 'http://www.your_domain.com/tdi/widgets2.json', 'import_customizer_file_url' => 'http://www.your_domain.com/tdi/customizer2.dat', 'import_preview_image_url' => 'http://www.your_domain.com/tdi/preview_import_image2.jpg', 'import_notice' => __( 'A special note for this import.', 'your-textdomain' ), ), ); } add_filter( 'theme-demo-import/import_files', 'TDI_import_files' ); You can set content import, widgets, and customizer import files. You can also define a preview image, which will be used only when multiple demo imports are defined, so that the user will see the difference between imports.
You can do that, with the theme-demo-import/after_import action hook. The code would look something like this: function TDI_after_import_setup() { // Assign menus to their locations. $main_menu = get_term_by( 'name', 'Top Menu', 'nav_menu' ); set_theme_mod( 'nav_menu_locations', array( 'primary-menu' => $main_menu->term_id, ) ); // Assign front page and posts page (blog page). $front_page_id = get_page_by_title( 'Home' ); $blog_page_id = get_page_by_title( 'Blog' ); update_option( 'show_on_front', 'page' ); update_option( 'page_on_front', $front_page_id->ID ); update_option( 'page_for_posts', $blog_page_id->ID ); } add_action( 'theme-demo-import/after_import', 'TDI_after_import_setup' );
You have to use the same filter as in above example, but with a slightly different array keys: local_*. The values have to be absolute paths (not URLs) to your import files. To use local import files, that reside in your theme folder, please use the below code. Note: make sure your import files are readable! function TDI_import_files() { return array( array( 'import_file_name' => 'Demo Import 1', 'local_import_file' => trailingslashit( get_template_directory() ) . 'tdi/demo-content.xml', 'local_import_widget_file' => trailingslashit( get_template_directory() ) . 'tdi/widgets.json', 'local_import_customizer_file' => trailingslashit( get_template_directory() ) . 'tdi/customizer.dat', 'import_preview_image_url' => 'http://www.your_domain.com/tdi/preview_import_image1.jpg', 'import_notice' => __( 'After you import this demo, you will have to setup the slider separately.', 'your-textdomain' ), ), array( 'import_file_name' => 'Demo Import 2', 'local_import_file' => trailingslashit( get_template_directory() ) . 'tdi/demo-content2.xml', 'local_import_widget_file' => trailingslashit( get_template_directory() ) . 'tdi/widgets2.json', 'local_import_customizer_file' => trailingslashit( get_template_directory() ) . 'tdi/customizer2.dat', 'import_preview_image_url' => 'http://www.your_domain.com/tdi/preview_import_image2.jpg', 'import_notice' => __( 'A special note for this import.', 'your-textdomain' ), ), ); } add_filter( 'theme-demo-import/import_files', 'TDI_import_files' );
This question might be asked by a theme author wanting to implement different after import setups for multiple predefined demo imports. Lets say we have predefined two demo imports with the following names: 'Demo Import 1' and 'Demo Import 2', the code for after import setup would be (using the theme-demo-import/after_import filter): function TDI_after_import( $selected_import ) { echo "This will be displayed on all after imports!"; if ( 'Demo Import 1' === $selected_import['import_file_name'] ) { echo "This will be displayed only on after import if user selects Demo Import 1"; // Set logo in customizer set_theme_mod( 'logo_img', get_template_directory_uri() . '/assets/images/logo1.png' ); } elseif ( 'Demo Import 2' === $selected_import['import_file_name'] ) { echo "This will be displayed only on after import if user selects Demo Import 2"; // Set logo in customizer set_theme_mod( 'logo_img', get_template_directory_uri() . '/assets/images/logo2.png' ); } } add_action( 'theme-demo-import/after_import', 'TDI_after_import' );
Of course you can, use the theme-demo-import/before_widgets_import action. You can also target different predefined demo imports like in the example above. Here is a simple example code of the theme-demo-import/before_widgets_import action: function TDI_before_widgets_import( $selected_import ) { echo "Add your code here that will be executed before the widgets get imported!"; } add_action( 'theme-demo-import/before_widgets_import', 'TDI_before_widgets_import' );
You can change the plugin intro text by using the theme-demo-import/plugin_intro_text filter: function TDI_plugin_intro_text( $default_text ) { $default_text .= '<div class="TDI__intro-text">This is a custom text added to this plugin intro text.</div>'; return $default_text; } add_filter( 'theme-demo-import/plugin_intro_text', 'TDI_plugin_intro_text' ); To add some text in a separate "box", you should wrap your text in a div with a class of 'TDI__intro-text', like in the code example above.
This will greatly improve the time needed to import the content (images), but only the original sized images will be imported. You can disable it with a filter, so just add this code to your theme function.php file: add_filter( 'theme-demo-import/regenerate_thumbnails_in_content_import', '__return_false' );
As a theme author you do not like the location of the "Import Demo Content" plugin page in Appearance -> Import Demo Content? You can change that with the filter below. Apart from the location, you can also change the title or the page/menu and some other parameters as well. function TDI_plugin_page_setup( $default_settings ) { $default_settings['parent_slug'] = 'themes.php'; $default_settings['page_title'] = esc_html__( 'Theme Demo Import' , 'theme-demo-import' ); $default_settings['menu_title'] = esc_html__( 'Import Demo Content' , 'theme-demo-import' ); $default_settings['capability'] = 'import'; $default_settings['menu_slug'] = 'theme-demo-import'; return $default_settings; } add_filter( 'theme-demo-import/plugin_page_setup', 'TDI_plugin_page_setup' );

More plugins by themely

Sign In / Register

You need to sign in or register to use this feature.