Written by

in

Most blog posts about AI in WordPress stop at “look, it wrote a page.” That’s the demo. The real leverage shows up when you’re not creating one page — you’re updating a hundred. Rebrand. Migration. Compliance audit. Content refresh before a release. The kind of work that used to mean a junior marketer with a spreadsheet and a mouse.

Two DesignSetGo abilities collapse that kind of work to a single prompt: find-blocks and batch-update. Used well, they’ll change how you think about content ops.

find-blocks: the search half

find-blocks returns every post that contains a given block type, along with counts and post IDs. It’s a read-only discovery endpoint — perfectly safe to hammer.

GET /wp-abilities/v1/designsetgo/find-blocks/run
    ?input[block_name]=designsetgo/accordion
    &input[post_type]=page
    &input[limit]=50

Pair it with get-post-blocks on each returned post to inspect the block’s attributes — “find every button that uses my old brand color” is two ability calls and a filter away.

batch-update: the write half

batch-update accepts up to 20 operations per call, each targeting blocks by name with an optional filter. The filter is what makes it powerful — only matching blocks get changed.

POST /wp-abilities/v1/designsetgo/batch-update/run
{
  "input": {
    "post_id": 456,
    "operations": [
      {
        "block_name": "core/button",
        "filter": { "backgroundColor": "#3b82f6" },
        "attributes": { "backgroundColor": "#7c3aed" }
      }
    ]
  }
}

Every button in post 456 whose background is the old blue flips to the new purple. Buttons with other colors are untouched.

Three real scenarios

Rebrand. Your brand color changed from #3b82f6 to #7c3aed. Prompt your LLM:

“Find every post using core/button or designsetgo/pill with backgroundColor #3b82f6 and update it to #7c3aed. Return a list of affected post IDs.”

The agent calls find-blocks twice, then batch-update once per post, then gives you the audit list.

Accessibility sweep. You realize your Image blocks have been shipping without alt text. Prompt:

“Find every post with a core/image block that has empty alt text. Give me the post IDs, image URLs, and surrounding context. I’ll write the alt text; don’t modify anything.”

Pure discovery — no writes. You get a spreadsheet-ready audit you can work through.

Section padding cleanup. After a design refresh, you want every top-level Section to use the new 80px vertical padding:

“Find every designsetgo/section block at the top level (not nested) on posts in the ‘landing-pages’ category, and set paddingTop and paddingBottom to 80px. Skip any section that already has custom padding.”

The “skip any section that already has custom padding” instruction translates to a filter — the agent only targets sections where those attributes are unset or default.

Safety rules

  • Always dry-run first. Ask the agent to list the posts and attributes it would change before writing. A good agent will offer this; a great one will insist.
  • Filter aggressively. “Update all buttons” is a footgun. “Update all buttons with background #3b82f6” is a scalpel.
  • Start scoped. One category, one post type, or a handful of post IDs. Expand the scope once you trust the pattern.
  • Keep the audit. Save the agent’s report of affected posts. It’s your rollback plan.
  • Back up your database. This is the oldest rule, but it applies double here. A 30-second operation that touches 100 posts is worth 10 seconds of precaution.

Used responsibly, find-blocks + batch-update is the most productive combo DesignSetGo exposes. Try it on something low-stakes first — a color swap in a test category, say — and watch how fast the audit report comes back.

Comments

Leave a Reply