Skip to content

Cookbook › WP-CLI

Add up data from a plugin’s own table

WP-CLI2 minutesReads onlyTested 15 Oct 2026
Paste into ChatGPT or ClaudeUse WP-CLI to find my form plugin’s entries table, show me its columns, then count this month’s entries per form.

Reads only. Nothing on your site changes, at any safety level.

  1. Your assistant runs wp db tables and wp db columns to find the right table and understand it.
  2. It runs one wp db query with COUNT and GROUP BY, up to 1,000 rows.
  3. It reports the totals. Nothing changes.
  • “Join the orders and customers tables and total this month’s sales per country.”
  • “Mark entries 120 to 140 as read.” (A change: up to 100 rows, all or nothing.)
  • Passwords, keys and AI Puffer’s own tables stay hidden.
  • Changing a plugin’s data is possible, up to 100 rows at a time. Keep a backup, and read the plugin’s own docs before you change its tables.