Title: Test Content Generator
Author: keith_wp
Published: <strong>2024 年 2 月 19 日</strong>
Last modified: 2025 年 4 月 7 日

---

搜尋外掛

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://ps.w.org/test-content-generator/assets/icon-256x256.png?rev=3038088)

# Test Content Generator

 由 [keith_wp](https://profiles.wordpress.org/keith_wp/) 開發

[下載](https://downloads.wordpress.org/plugin/test-content-generator.0.4.4.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/test-content-generator/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/test-content-generator/#reviews)
 * [開發資訊](https://tw.wordpress.org/plugins/test-content-generator/#developers)

 [技術支援](https://wordpress.org/support/plugin/test-content-generator/)

## 外掛說明

Developing any WP plugin or theme often means needing to test it against as much
of a “real site” as your development environment will allow, and if you’re adding
that test data by hand, it gets pretty tedious pretty quickly.

This plugin will let you use either [WP-CLI](https://wp-cli.org/) commands, or the
admin page in Tools->**Content Generator** to add test users, populate the Media
Library with example images, an additional test custom post type and custom taxonomies,
generate as many test “_Lorem Ipsum_” posts as you want, and then add comments to
those posts.

Each of those “_Lorem Ipsum_” posts will be randomly tagged and categorised, and
can also be assigned one of the test images as its Featured Image, as well as a 
variety of HTML content in addition to the usual paragraphs.

This plugin is primarily for people who need to test plugins and themes on a regular
basis, but it would let anyone get a feel of how their site will look when it’s 
full of real content.

### Workflow

All the parts of this plugin are optional, and each can be repeated as much as you
want, depending on which parts of your site you want to test.

However, no individual step will “backfill” preceeding ones automatically, so if
you have an empty site and you want (eg.) your test _Posts_ to appear to have been
written by different people, then you need to add the test _Users_ first.

ie.

 * Enable **Custom** (Post Types & Categories & Tags) before adding terms from your**
   Taxonomies**,
 * Add **Users** before downloading **Images** before generating **Posts** before
   adding **Comments**.

### WP CLI Integration

Using the plugin defaults, you can populate a test site with just the following 
commands:

 1. `wp plugin install test-content-generator --activate`
     Download and activate the
    plugin.
 2. `wp test users --amount=20`
     Add 20 random Editor/Author/Contributor/Subscribers
    users who have registered within the last 60 days.
 3. `wp test taxonomies --amount=50`
     Add 50 taxonomy terms split between Categories
    and Post Tags.
 4. `wp test images --amount=10`
     Add 10 images of size 800×400 uploaded by any Editor/
    Author.
 5. `wp test posts --amount=40`
     Add 40 Posts written within the last 60 days by any
    Editor/Author/Contributor, with a Featured Image and both categorised and tagged.
 6. `wp test comments --amount=100`
     Add 100 comments to your Posts written within 
    the last 60 days by any of the registered users.

See `wp help test` for more details.

## 螢幕擷圖

 * [[
 * Generating new test _Posts_.
 * [[
 * An example of the output using the _Polite_ theme.
 * [[
 * Create any role of user in the _Users_ screen.
 * [[
 * Adding _Images_ to your Media Library.
 * [[
 * The _Custom Post Type_ and _Custom Taxonomies_ can be enabled separately.
 * [[
 * Add test terms to all of your _Taxonomies_.
 * [[
 * Fill out your frontend by adding _Comments_ to your content.

## 使用者評論

![](https://secure.gravatar.com/avatar/59509299a504d9d662d2aa13d1b4147f921f0a494c692715aaf2592e100e6721?
s=60&d=retro&r=g)

### 󠀁[Great plugin 🙂](https://wordpress.org/support/topic/great-plugin-40724/)󠁿

 [squarestar](https://profiles.wordpress.org/squarestar/) 2025 年 8 月 4 日 1 則
留言

Thanks for this – I really like how straight-forward it is. I’ve used most of the
UI features and it works very well, with a nice, native interface and no distractions!
I haven’t used the WP CLI features as I don’t normally use WP CLI.

![](https://secure.gravatar.com/avatar/f8116357a3ddb033bec09095a06f0d443ccd0f8282e159c5b3f5e1fc856c1ef3?
s=60&d=retro&r=g)

### 󠀁[It works](https://wordpress.org/support/topic/it-works-2546/)󠁿

 [yuri.koval](https://profiles.wordpress.org/yurikoval/) 2025 年 3 月 10 日

Good to see a plugin that actually generates test content with ease.

 [ 閱讀全部 2 則使用者評論 ](https://wordpress.org/support/plugin/test-content-generator/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈Test Content Generator〉的開發相關工作。

參與者

 *   [ keith_wp ](https://profiles.wordpress.org/keith_wp/)

[將〈Test Content Generator〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/test-content-generator)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/test-content-generator/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/test-content-generator/)，或
透過 [RSS](https://plugins.trac.wordpress.org/log/test-content-generator/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/test-content-generator/)。

## 變更記錄

### 0.4.4

 * Fix: Stopped creating deprecated dynamic properties for PHP 8.3

### 0.4.3

 * Tested against 6.7.2
 * Fix: Moved the translation text domain loading to later in the init

### 0.4.2

 * Tested against 6.4.3, 6.5 and 6.6.1
 * Fix: Moved the run() callback of register_setting() into the abstract class (
   DRY)
 * Fix: Switched use of rand() to wp_rand() to stop the plugin check whining
 * Fix: Added translator notes for the various placeholders

### 0.4.1

 * Fix: Changed how some string arrays are passed via CLI to be consistent
 * Fix: Uses gmdate/wp_json_encode instead of date/json_encode

### 0.4

 * Feature: Added WP-CLI integration

### 0.3

 * Tested against 6.4 and 6.3.2
 * Feature: Added ability to fill media library from https://picsum.photos/
 * Feature: Added featured images, user creation, comment creation
 * Feature: Added a better settings page
 * Initial public release

### 0.2

 * Feature: Added the lipsum routines to generate posts and terms

### 0.1

 * Original plugin – add some test posts

## 中繼資料

 *  版本 **0.4.4**
 *  最後更新 **1 年前**
 *  啟用安裝數 **60+**
 *  WordPress 版本需求 ** 4.0 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.7.5**
 *  PHP 版本需求 ** 8.3 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/test-content-generator/)
 * 標籤:
 * [lipsum](https://tw.wordpress.org/plugins/tags/lipsum/)[lorem ipsum](https://tw.wordpress.org/plugins/tags/lorem-ipsum/)
   [test posts](https://tw.wordpress.org/plugins/tags/test-posts/)[wp-cli](https://tw.wordpress.org/plugins/tags/wp-cli/)
 *  [進階檢視](https://tw.wordpress.org/plugins/test-content-generator/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/test-content-generator/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/test-content-generator/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/test-content-generator/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/test-content-generator/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/test-content-generator/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/test-content-generator/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/test-content-generator/reviews/)

## 參與者

 *   [ keith_wp ](https://profiles.wordpress.org/keith_wp/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/test-content-generator/)