Linux 软件免费装
Banner图

Pure Demo Importer

开发者 themepure
更新时间 2026年9月23日 21:57
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

demo wxr demo importer starter sites one-click import

下载

1.0.12

详情介绍:

Pure Demo Importer adds a Demo Importer admin page to any WordPress theme that registers itself with the plugin. It can: 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.

安装:

  1. Upload the pure-demo-importer folder to /wp-content/plugins/.
  2. Activate "Pure Demo Importer" from the Plugins screen.
  3. From your theme's functions.php (or a core plugin's bootstrap), hook the pure_demo_importer_register action and call ThemePure_Demo_Importer::register() with your config. See the "Registering demos" section for a full example.

升级注意事项:

1.0.12 Security release. SQL-pack import/export and the built-in SVG sanitizer have been removed; XML parsing, outbound downloads and request handling are hardened. Normal WXR / widgets / customizer imports are unaffected. 1.0.11 Recommended-plugin installs are now resolved exclusively from the WordPress.org Plugin Directory. 1.0.0 First public release.

常见问题:

The plugin says "No demos configured" — what now?

Either your theme/core plugin hasn't called ThemePure_Demo_Importer::register(), or it called it with an empty demos array. See the "Registering demos" section above for the correct hook + call pattern. If you want to populate demos via filter only (no register() array), use the {theme_slug}_demo_importer_demos filter described above.

Will reset delete my Pure Demo Importer plugin?

No. The reset always preserves Pure Demo Importer itself — deactivating the plugin running the reset would terminate the request mid-flight. Use the themepure_di_reset_preserve_plugins filter to preserve additional plugins.

Does this work without the WordPress Importer plugin installed?

Yes. Pure Demo Importer vendors the full WordPress Importer plugin internally at vendor/wordpress-importer/. There is no runtime dependency on the upstream plugin being installed.

Where is the import log?

wp-content/uploads/themepure-di-logs-{random}/import.log — rotated at ~2 MB. Disable with add_filter( 'themepure_di_logging_enabled', '__return_false' );.

更新日志:

1.0.12 1.0.11 1.0.0