Create a WP test site with lots of users and posts
Posted on Wed 05 January 2022 in programming, IT, wordpress
The following WP-CLI command will create a lot of test data into a WordPress site: 1000 new users, each with 50 posts. Each post gets a random date in the last year and a random post content of variable length filled using a lorem ipsum
generator.
WP_CLI::add_command( 'test', 'create_test_data …