[WordPress] 外掛分享: Demo Data Creator

首頁外掛目錄 › Demo Data Creator
70+
安裝啟用
★★★☆☆
3.5/5 分(22 則評價)
3333 天前
最後更新
問題解決
WordPress 2.7+ v1.3.4 上架:2009-06-07

內容簡介

請勿在正式網站或需要保留數據的網站使用此外掛。

刪除演示數據時,整個 WordPress 數據庫將被重置,刪除所有文章、頁面、評論和用戶。只在你確定數據庫可以被清空的網站上使用此外掛。

如果您開發 WordPress 網站,當正在建立網站時,擁有一些演示數據將會很有用。這可以讓您檢查事物列表是否正常顯示,並且在佈景主题中使用數據時是否能正常運作。

以往,演示數據的添加相當麻煩。您需要備份其他網站並使用該數據,或者需要繁瑣地創建多個用戶和博客。現在有了 Demo Data Creator,這一切都不再是問題!

這款 WordPress、WPMU/MultiSite 和 BuddyPress 外掛會給您一個新的管理界面,在這裡您可以輸入一些參數、點擊一個按鈕,然後(稍等片刻)就會創建隨機演示數據。參數選項包括:

* 要創建的用戶數
* 每個用戶的博客數(對於 WPMU/MultiSite)
* 是否必須要求用戶擁有博客
* 每個博客中的類別數
* 每個博客中的文章數
* 每個文章中的段落數
* 每個博客中的頁面數
* 頂層頁面數
* 嵌套頁面的層級數
* 每個博客中每篇文章的評論數
* 每個博客捲軸上的連結數

對於 BuddyPress,還有以下選項:

* 群組數
* 每個群組的成員數
* 每個群組的 wire 貼文數
* 每個用戶的好友數
* 每個用戶的狀態數
* 每個用戶的 wire 貼文數

文章內容和評論文字將從 Lorem ipsum 文本自動生成,對於文章內容,它甚至是 HTML 格式化的。

感謝 derscheinwelt 提供建議並提供用於創建文章的隨機日期的代碼,以及 http://slipfire.com/ 的 Steve 提供 wp_insert_user() 代碼。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.3.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Demo Data Creator」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

DO NOT USE THIS PLUGIN ON A PRODUCTION SITE, OR ON A SITE WHERE YOU NEED TO KEEP THE DATA.
When deleting demo data your ENTIRE WordPress database will be reset, deleting ALL your posts, pages, comments and users. ONLY USE THIS PLUGIN ON A SITE WHERE YOU KNOW THE DATABASE CAN BE WIPED.
If you develop WordPress websites it’s useful to have some demo data in your system while it’s being built. This allows you to check that lists of things are displaying as they should, and that themes are working when they get data in them.
Historically it’s been a pain to add that data in. Either you need to take a backup of another site and use that data, or you need to tediously create multiple users and blogs yourself. No more, not now my Demo Data Creator is in town!
This WordPress, WPMU/MultiSite and BuddyPress plugin gives you a new admin screen where you can enter some parameters, click a button and (after a short wait) random demo data will be created. The parameter options include:
* Number of users to create
* Number of blogs per user (for WPMU/MultiSite)
* Whether users must have a blog
* Number of categories in each blog
* Number of posts in each blog
* Number of paragraphs in each blog post
* Number of pages in each blog
* Number of top-level pages
* Number of levels to nest pages
* Number of comments per post for each blog
* Number of links in blogroll for each blog

For BuddyPress you also have:
* Number of groups
* Number of members per group
* Number of wire posts for each group
* Number of friends per user
* Number of statuses for each user
* Number of wire posts for each user

Post content and comment text is automatically generated from Lorem ipsum text, for post content it’s even HTML-formatted.
Thanks to derscheinwelt for the suggestion and code to create random dates for posts, and Steve at http://slipfire.com/ for the wp_insert_user() code.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon