That was the best tutorial I've seen so far on WP-CLI
@Quynn-Oneal4 жыл бұрын
great video. can you make some videos about testing? unit testing and if possible e2e testing
@hcjorgensen4 жыл бұрын
Possible extension to clean out the fake data after use: Add a meta field on each fake post that denotes it being a fake Add a subcommand to wpc like 'wpc delete_floorplans' that finds all floorplans with the above mentioned meta field and deletes them. Food for thought: How would you make the subcommands 'wpc generate_all' and 'wpc delete_all' so that they would call all separate 'generate_{post_type}' and 'delete_{post_type}' subcommands respectively?
@WPCasts4 жыл бұрын
You probably would have something like: `delete_posts --post_type=floorplan,post,page --amount=-1`
@johannes-euquerofalaralema43743 жыл бұрын
Thanks!! More, please!! :)
@sumanbiswas30714 жыл бұрын
Hello, sir love Your videos !! can you make a video on the WordPress learning path for complete beginners. That'll be so much helpful for us, thank you!
@sternerstuff88172 жыл бұрын
Great video. A couple of thoughts: - Composer - you should probably be requiring Composer's generated autoloader, not the Faker autoloader. So just `./vendor/autoload.php` - `get_terms` can simply return IDs. Pass the arg `'fields' => 'ids'`