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.

Download

Latest version: Download Demo Data Creator v1.3.4 [zip]
downloads

Installation

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.

Install from the WordPress plugin repository using the installer, or put all the files into a /wp-content/plugins/demodata/ directory. Activate from the plugin admin screen.

You can find the Demo Data Creator admin menu option in the “Tools” menu. If you are using WordPress MultiSite (version 3.0 or above) you can find the Demo Data Creator admin menu option in the “Super Admin” menu.

If using WPMU (NOT WordPress 3.0 MultiSite): The plugin should be placed in your /wp-content/mu-plugins/ directory (not /wp-content/plugins/) and requires no activation. So the path to the file should be /wp-content/mu-plugins/demodata.php. Access the form from the “Site Admin” menu in the Dashboard.

FAQ

Q. The plugin deleted all my data! Why?
A. I have been as clear as I can about the use for this plugin. It creates demo data (posts, pages, comments, users etc) but when you choose to delete that data IT WILL WIPE YOUR ENTIRE WORDPRESS DATABASE.
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.

Q. Why did you write this plugin?
A. To scratch my own itch when developing sites. Hopefully this plugin helps other developers too.

Q. What about BuddyPress support
A. The DemoData plugin now supports BuddyPress.

Changelog

1.3.4 (2017/01/31)

1.3.3 (2015/11/17)

1.3.2 (2014/06/19)

1.3.1 (2014/03/09)

1.3 (2013/09/18)

1.2 (2013/01/05)

1.1 (2012/09/18)

1.0 (2012/01/24)

0.9.8 (2011/09/26)

0.9.7.7 (2011/03/05)

0.9.7.6 (2010/12/03)

0.9.7.5 (2010/10/16)

0.9.7.4 (2010/09/09)

0.9.7.3 (2010/09/02)

0.9.7.2 (2010/07/10)

0.9.7.1 (2010/07/04)

0.9.7 (2010/06/23)

0.9.6 (2010/06/18)

0.9.5 (2010/06/11)

0.9.4 (2010/05/14)

0.9.3 (2010/04/20)

0.9.2 (2010/04/12)

0.9.1 (2010/04/01)

0.9 (2010/03/23)

0.8

0.7

0.6

0.5

0.4

0.3

0.2

0.1

One thought on “Demo Data Creator

Leave a Reply