| 开发者 | som9663 |
|---|---|
| 更新时间 | 2026年10月3日 15:25 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
--demo-site on the command line) to also set the site
title and store address, switch store visibility to Live, turn on pretty permalinks, unpublish
WordPress's sample post and page, and add a demo checkout: a payment method that takes no money and
delivery methods, so visitors can place a test order. Never use this option on a real store.
WP-CLI
wp storefill packs
wp storefill import unishop --demo-site
wp storefill status unishop
wp storefill remove unishop --yes
Supported themes
Demo packs are available for Twenty Twenty-Five (the default WordPress theme), Unishop, eBasket,
Luma and Vitrena. Packs for more themes are added to the demo library over time; Storefill finds them
without an update.
For theme developers
A demo pack is a few JSON files (content, dashboard settings, Customizer settings and widgets)
and a folder of photos in the public
demo-pack repository. Its README documents the format.
Nothing in a pack is executed: Storefill only reads data and imports images through the WordPress
media library. Pack text is treated as plain text (any HTML is stripped), and a pack can only change
a fixed list of store and site-identity settings, never accounts, roles, URLs or security settings.
A pack may declare required_plugins, with each entry specifying a WordPress.org slug, display
name, plugin entry file (for example, woocommerce/woocommerce.php) and minimum_version.
The admin importer prepares these plugins before importing content. Plugin downloads come only
from WordPress.org; a pack cannot supply a plugin download URL or executable code.
storefill-demo-content-importer folder to /wp-content/plugins/
and activate it on the Plugins screen.No. Storefill only adds. When something with the same name already exists, it is used as it is and never changed, and removal never deletes it.
Appearance → Import demo, click Remove demo content, and confirm. Or run
wp storefill remove <pack>.
Yes, to match the demo. A block theme switches to the style variation its demo uses, if it names one, and a classic theme gets the demo's Customizer settings and widgets. Storefill records your own styles and settings first, and removing the demo puts them back exactly.
Open Appearance → Import demo again and click Finish the import, or click Try again on the step that stopped. Every step picks up where it left off without duplicating anything.
It stays on your site. Storefill keeps its record of what it imported, so if you install it again you can still remove the demo content. Remove the demo first if you want it gone.
Packs that build a store need WooCommerce, and the import screen says so. Packs with only pages, posts and a menu work without it. Vitrena, eBasket, Luma and Unishop prepare WooCommerce automatically when you import.