~/talk

WP-CLI for PHP developers

Talkat phpday 2024 · 2024-05-16..05-17· [php]
slides:none on file

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

  1. 0:00WP-CLI intro for PHP devs
  2. 1:50What is WP-CLI and why use it
  3. 3:37Executing PHP code with WP-CLI commands
  4. 6:30Filter and export user data
  5. 14:03PHP scripts with WP-CLI
  6. 25:54Import data and automate workflows
  7. 29:31Closing & Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.