Creating Your Own WP CLI Command From Scratch

  Рет қаралды 5,309

WPCasts

WPCasts

Күн бұрын

Пікірлер: 7
@richardbuff1128
@richardbuff1128 Жыл бұрын
That was the best tutorial I've seen so far on WP-CLI
@Quynn-Oneal
@Quynn-Oneal 4 жыл бұрын
great video. can you make some videos about testing? unit testing and if possible e2e testing
@hcjorgensen
@hcjorgensen 4 жыл бұрын
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?
@WPCasts
@WPCasts 4 жыл бұрын
You probably would have something like: `delete_posts --post_type=floorplan,post,page --amount=-1`
@johannes-euquerofalaralema4374
@johannes-euquerofalaralema4374 3 жыл бұрын
Thanks!! More, please!! :)
@sumanbiswas3071
@sumanbiswas3071 4 жыл бұрын
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!
@sternerstuff8817
@sternerstuff8817 2 жыл бұрын
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'`
Improve WordPress Security with WPScan
18:23
WPCasts
Рет қаралды 7 М.
Quilt Challenge, No Skills, Just Luck#Funnyfamily #Partygames #Funny
00:32
Family Games Media
Рет қаралды 25 МЛН
Creative Justice at the Checkout: Bananas and Eggs Showdown #shorts
00:18
Fabiosa Best Lifehacks
Рет қаралды 26 МЛН
How To Create Dynamic Routes In WordPress
16:15
WPCasts
Рет қаралды 17 М.
The Only WP CLI Tutorial You’ll Ever Need
21:07
10Web | AI-Powered Website Builder
Рет қаралды 19 М.
Tips & Tricks For Debugging WordPress PHP
9:41
WPCasts
Рет қаралды 50 М.
My Software Engineering Story After 10 Years
36:06
WPCasts
Рет қаралды 2 М.