WP-CLI for PHP developers
summary
Makes a concrete claim: one can run ad hoc production data tasks with WP-CLI instead of pouring code into the repo. Demonstrates using wp shell and wp eval-file to run PHP that queries users, converts objects to arrays, formats output with the internal API, and writes a CSV export that actually works on the demo instances. Shows a quirky bug: search_columns parsing forces array syntax inconsistently. Promises minutes to complete tasks that otherwise take days when done by standard deploy flow.
AI-written summary · about
chapters (7)
- 0:00WP-CLI intro for PHP devs
- 1:50What is WP-CLI and why use it
- 3:37Executing PHP code with WP-CLI commands
- 6:30Filter and export user data
- 14:03PHP scripts with WP-CLI
- 25:54Import data and automate workflows
- 29:31Closing & Q&A
related talks
40mAlias WP-CLI
05mLightning Talk: PHP and Prometheus For better Metrics
48mWordPress for the Modern PHP Developer
43mSpeeding up the Web with PHP 7
01h 02mHacking Wordpress, a Crash Course in Writing Plugins and Widgets
42mKubernetes for PHP developers
35mPractical PHP Deployment with Jenkins
55mFantastic functions and where to find them
