Most site changes belong in your page builder. Some do not: a custom shortcode, a small admin tweak, a webhook, a scheduled cleanup. That is plugin territory, and Claude Code is good at small, well-scoped plugins.
Plugin or child theme?
- Plugin: behaviour that should survive a theme change, such as a custom post type, a shortcode or an integration.
- Child theme: code tied to your theme, such as Bricks custom elements or theme hooks. Never edit the parent theme; updates overwrite it.
A safe way to build one
- Work locally or on staging, never on the live site first.
- Describe the job precisely: what it does, where it shows, who may use it, and what must not happen.
- Ask for WordPress conventions: a unique prefix, nonces and capability checks on every form or action, escaped output, sanitised input.
- Keep it small. One plugin per job is easier to review and remove.
- Read the code before activating it. Ask Claude to explain every hook and query in plain English.
- Test, then deploy with a backup in place.
What to watch for
- Database queries built from user input without preparation.
- Admin actions without capability checks.
- Calls to outside services you did not ask for.
- Code that runs on every page load when it only needs to run in admin.
More on review in Reviewing AI-Written Code Before It Goes Live.

