# How a WordPress AI agent changes your site through Widejoin

A WordPress AI agent is an AI client such as Claude Code that changes your site through an MCP server; with Widejoin it acts as its own WordPress user, every change is recorded, and the plugin is free with Pro from $99 a year. [Widejoin pricing](/pricing/) has the Free and Pro limits and the 14 day Pro trial.

## How does Widejoin work, in four steps?

1. **Connect your AI client.** Add Widejoin as an MCP server in your client, with the endpoint and a token. Claude Code was tested in the real app. For 15 other named clients we ran a test client with the config format each app uses, against a lab gateway; the apps themselves were not run. claude.ai's custom connector and ChatGPT sign in with OAuth. The hosted server offers it, but we have not completed a sign-in from either app yet.
2. **Ask for the site, or the change.** Ask in plain words, for example "Build the Harbor & Pine Studio pages as drafts". On 11 October 2026 [a Claude Code agent built Harbor & Pine Studio](/blog/claude-code-built-a-wordpress-site/), our demo client site, on a lab install in about an hour and a half and 173 tool calls.
3. **The agent uses the tools.** It reads the site, checks the builder's own schema and calls the tools it needs for the job.
4. **The change applies and is recorded.** In Direct, the default for a new install, each change applies at once as the agent's own WordPress user, and its answer gives the change's id. A change that user may not make, or one on the site's ask-before list, waits for a person in wp-admin. So does a page builder edit that adds or changes code, or a template, header, footer or global, when that user may not add code. With Review first on, changes wait there until a person approves them.

## How do I connect my AI client?

With an endpoint and a token from your Widejoin console. Claude Code takes one command, and Cursor takes one block in its mcp.json. The [Connect your AI client guide](/docs/connect/) has a block per client and says how each one was tested.

## Where does the Widejoin server run?

Inside your WordPress site. The plugin serves an MCP endpoint under `/wp-json/` on your own domain, so the tools run with WordPress's own code, permissions and plugin APIs. Widejoin runs on the [official WordPress MCP Adapter](/compare/wordpress-mcp-adapter/), version 0.7.x from WordPress.org, which turns abilities from the Abilities API, part of WordPress core from 6.9, into MCP tools.

Your client reaches it two ways:

1. **Through the Widejoin console.** Your client connects to `https://widejoin.com/mcp` with a console token, shown once. A site token reaches one site, and on paid plans the account connection reaches every site.
2. **Straight to the site.** Your client connects to the site's endpoint with an Application Password marked Limited to Widejoin, made for a WordPress user that exists only for the agent.

![Diagram of the two routes. Your AI client reaches the Widejoin plugin through https://widejoin.com/mcp with a token or sign-in, or straight to the site with a limited Application Password. The plugin runs on the MCP Adapter inside WordPress](/lab/docs-diagram-where-server-runs-640.webp "Diagram, drawn by us: the two ways a client reaches the plugin on your site.")

## Is Widejoin an AI website builder for WordPress?

Not on its own. It does not write your pages; your AI client does. Widejoin gives that client typed tools for Gutenberg and the page builders on [the WordPress MCP integrations page](/integrations/), a record of each change and a restore for most. On 11 October 2026 a Claude Code agent built our demo client site this way in about an hour and a half. The [WordPress AI website builder page](/wordpress-ai-website-builder/) covers which agents and page builders can do the same today.

## What does the agent do with the tools?

It picks them the way you would pick screens in wp-admin. For the opening hours request on our lab, it read the [Elementor page](/integrations/elementor/) with `read-elementor`, checked the heading widget with `elementor-widget-schema`, and sent the edit with `prepare-elementor-layout`.

A draft tool creates a new unpublished page at once, in either mode: in [Gutenberg](/integrations/gutenberg/), [Elementor](/integrations/elementor/), [Divi](/integrations/divi/), [Bricks](/integrations/bricks/) or [Beaver Builder](/integrations/beaver-builder/), or as a copy of an existing [SeedProd](/integrations/seedprod/) page. Most other write tools record a change before they write: the exact before and after state, the rows that change and a one-line reason of up to 280 characters. Settings are checked against each widget's own controls first. In Direct the change then applies in the same call, and the answer says status `applied` and carries the undo and a link to the change's page in wp-admin. In Review first it waits, and the answer carries the review and preview links.

## What applies at once, and what waits for a person?

In Direct, the default for a new install, most changes apply at once as your agent's WordPress user, each one recorded and most of them restorable in one call. Eight kinds still ask a person in wp-admin first: deletes, plugin, theme and core changes, users and roles, mail settings, payment settings, other WordPress options, restoring many changes at once, and site-wide theme templates. In Review first every change waits for a person, and in both modes new drafts and uploads are saved at once.

The full rule: in Direct a change applies at once, in the same request, as the WordPress user your agent connects as. It runs every check an approval runs, from that user's capabilities to the rules for HTML and code, and keeps its record and its audit row. Your agent can never do more than that user may.

![Diagram of the two modes. In Direct a change applies at once, or waits in wp-admin when the role may not make it, it is on Always ask first, or another rule holds it. In Review first it waits until a person approves, then applies. New drafts and uploads are saved at once in both](/lab/docs-diagram-direct-review-first-640.webp "Diagram, drawn by us: how a change goes live in each mode.")

These still wait for a person in wp-admin, each at its own review link:

- A change your agent's user may not make. It waits for someone whose role may, and the answer names those roles. When nobody on the site may make it, it is closed instead of kept.
- The ask-before list, where every item is on until an administrator turns it off:
  - Deletes and moves to the trash
  - Plugin, theme and core installs, updates, activations and deletes
  - Users, roles and who may register
  - Where form mail goes and how the site sends mail
  - Payment settings
  - Other WordPress options, outside the settings list
  - Restoring many changes at once, to a checkpoint or a session
  - Publishing or scheduling a theme-builder template (header, footer, product, shop) or changing where it shows
- Anything past the daily limit. It covers bulk replacements and any ask-before kind an administrator allows: 50 in 24 hours by default, settable from 1 to 500.
- Changes that always wait, whatever the list says:
  - Update plans
  - The Build install allowlist
  - Running another plugin's ability that writes
  - A role that could add code, change settings or promote users
  - Protected options, and pages frozen by a pending launch
- Content that WordPress's own content filter would change, and code (HTML, scripts, custom CSS) from a user who may not add code. A post open in another user's editor stays pending, and a person can approve it once the editor closes.
- An edit to a page builder that adds or changes code, attributes, dynamic data, conditions or loops, or that moves a code element, from a user who may not add code. The agent's answer names what made it wait (builder_reason). If the option "Let the agent's plain builder edits apply directly" is off, any builder edit from such a user waits, even a one word text change. On a Divi, WPBakery or Avada page holding an administrator's code, it is refused when proposed instead.
- A plain builder edit on a page that already holds code an administrator added. Saving it as your agent's user would remove that code, so in Elementor, Beaver Builder, Divi and Divi 5 the edit waits for an administrator. WPBakery and Avada refuse it when the agent proposes it, if that code sits where WordPress's content filter would remove that code, such as a script in a text block. A WPBakery Raw HTML block is kept, and the edit applies. Nothing is written when an edit waits or is refused. SeedProd keeps that code when it saves, so the plain edit applies there. In Bricks, an edit to an element that holds an administrator's code is refused, and a plain edit elsewhere on the page applies and keeps the code.
- A page builder template, header, footer or global setting from a user who may not add code, even a plain edit. From a user who may, it follows the ask-before list like any change, and publishing a theme-builder template or changing where one shows is on that list.
- Any change your agent sends with `review: true`.

A change that fails to apply is closed, not left waiting, and the tool returns the failure's own code.

### When does a plain builder edit apply at once?

In Direct mode, when the option "Let the agent's plain builder edits apply directly" is on, the default agent's text, image and button edits on one page apply at once. That holds in Elementor, Bricks, Beaver Builder, Divi, Divi 5, WPBakery and Avada. SeedProd's plain edits apply at once in Direct whether or not the option is on, as since 0.7.4. From 0.7.6 a SeedProd block off its plain list waits for a user allowed to add code. The option is on for a site that connects through First connect from 0.7.6. A site connected before keeps it off until an organization owner or admin turns it on from the Widejoin dashboard, for all sites or for one, or an administrator ticks it in the site's Direct settings. Setting WIDEJOIN_PLAIN_BUILDER_EDITS to false in wp-config.php locks it off.

With Review first on, every change except new drafts and uploads waits for a person in the inbox, and MCP tools cannot approve. An administrator can let edits to unpublished drafts apply without review. Build mode, a Review first option, lets build work apply at once while a new site is made: 7 days by default, up to 14, and at most 3 on a site that reports itself as production. Deletes, publishing, users and roles, code and updates still wait under Build, and plugin and theme installs wait unless they are on the install allowlist.

Only an administrator changes the mode, from a signed-in wp-admin session. No tool, Application Password or other plugin's sign-in can, so an agent cannot move its own site to Direct. A host can pin the mode in wp-config.php with `WIDEJOIN_MODE`. Any value other than `direct` pins Review first, so a typo never opens a site.

A new install starts in Direct. A site that ran an earlier version of Widejoin, or already has a First connect agent, a user with a password limited to Widejoin or any change history, starts in Review first. Deleting the old copy before the new one is active erases the settings and change history, unless you chose to keep them. The agent's limited password stays, so that site starts in Review first as well. The [changelog](/changelog/) says which release changed what applies at once.

In both modes some actions never wait: uploading or importing images into the Media Library (upload, import or Openverse), creating [WPCode snippets](/integrations/wpcode/) that stay disabled, writing files in draft themes, purging the cache, regenerating CSS and uploading an SVG.

On the 11 October Harbor & Pine Studio build, before Direct mode existed, about 60 of the agent's changes waited for approval one at a time. On 23 October 2026 we ran one fixed plan of 38 MCP calls, with no model in the loop, that builds a six page Gutenberg site, once in each mode. In Direct, 14 changes applied inside the agent's own calls and 3 waited for a person. They were the install allowlist, which is an administrator's setting, the Contact Form 7 activation and the contact form, whose mail is on the ask-before list. Review first with Build on asked for 4 approvals and one admin setting, and the ten product WooCommerce store run asked for 3 approvals against 1 in Direct.

## Where does a change wait?

A change that waits, in either mode, sits on the Changes screen in wp-admin, under Waiting, with a count in the admin menu. [Review first and the review inbox](/docs/review-inbox/) covers that screen. Changes are grouped by what they touch, with titles such as "Content: About us (page 745)". Two waiting changes that edit the same part of a page get a conflict warning. The Applied view lists what has gone live, and each change has its own page there with its record.

You see the page as a visitor would, on desktop and on a phone width, plus a table of element, setting, old value and new value. Approval checks your edit rights, a valid nonce, and that nothing changed since the review page loaded.

Media, SEO, page and post content and builder layouts can be approved in bulk on any site, and more build kinds off production. Deletes, users and roles, code and CSS, and core and plugin updates are approved one by one, and any change can be declined in bulk.

## How do I undo a change?

Ask your agent to undo it. It calls `restore-change` with the change's ID, which puts back the state the change captured before it ran. In Direct the undo applies in the same call. In Review first, or when the agent sends `review: true`, the undo waits for a person at its own review link. You can also open the change's page in wp-admin and choose Undo this change. [Undo an applied change](/docs/restore/) has the steps.

Widejoin checks the fingerprint first, so an undo is refused if the item changed after the change was applied, for example someone's later edit to the same field, or when an undo is already pending. An update plan is restored only at its review link. Change records are kept for 30 days.

Restore covers plugin and theme updates from the copy saved before the update; the exception is a plugin downgrade made from an uploaded zip, which downloads the plugin from its update server instead. Core updates, plugin database upgrades and third-party actions cannot be restored, and no undo takes back an email, a webhook or anything else that left the site. A core update, a database upgrade or a third-party action says so in its answer, with restorable: false and its restore_reason, and a restore of one is refused at once with `not_restorable`.

## How do plugin updates fit in?

The agent checks before it asks. The update check reads the compatibility an add-on declares and names the add-on when a major version jump goes past it. In Direct, plugin, theme and core updates are on the ask-before list by default, so a person approves each one until an administrator turns that item off. An update plan waits for a person whatever the list says. Across several sites the order is: preview, canary site first, approval per site, health check, stop at the first failure. [What a WordPress rollback can and cannot undo](/blog/wordpress-rollback/) walks through a real outage and the free crash guard.

After a plugin or theme update, the health check first makes the web server load the new code, then loads public pages. An update that breaks them is closed as Failed and cannot be approved again, and the review page says why. A backup from the last 24 hours is still a condition of the Pro trial, and we read every result ourselves. If you weigh this against paying people to run your updates, [what WordPress maintenance costs](/blog/wordpress-maintenance-cost/) compares 13 care plans and tools on their own published prices.

## What can the agent not do through Widejoin?

Anything its WordPress user may not do. It also never changes or refunds orders, takes payments, reads or changes payment keys, runs raw SQL, reads or writes arbitrary files, or works on Multisite. Third-party abilities run only after an administrator classifies them, and any that is not read only waits for a person in both modes.

## Does it use a staging site?

Widejoin works on whichever site you connect, so connect a staging copy if you want to try changes there first. PHP in child theme drafts is checked on an isolated WordPress runtime before it can be published.

## Why does the review inbox look the way it does?

Because of our own site. On distrocode.com, 24 pending changes once sat at the bottom of a 13,000 pixel admin page as bare IDs like "extension 6195", and 12 homepage edits showed up as 34 rows. Changes are now grouped, titled and given a reason line.

## Questions

### Which AI clients can I use?

Claude Code was tested in the real app. For 15 other named clients we ran a test client with the config format each app uses, against a lab gateway; the apps themselves were not run. claude.ai's custom connector and ChatGPT sign in with OAuth. The hosted server offers it, but we have not completed a sign-in from either app yet. [Connect your AI client](/docs/connect/) has each client's status.

### Does the agent's change go live straight away?

In Direct, yes, when its WordPress user may make it and it is not on the ask-before list, and then it applies in the same call and returns the change's id. In Review first, no. The tool records the change in a transaction that is always rolled back, so the live site is unchanged until a person approves it.

### What if two changes edit the same part of a page?

Both get a conflict warning in the inbox, and the review page links to the other one so you can pick. A layout change and an SEO change on the same page do not conflict.

### How long does a waiting change stay open?

Three days by default, and a site that saved its own number keeps it. An administrator can set it from 1 to 14 days in the review policy. After that the change expires, approval is refused, and the agent proposes it again.

### Can I undo a change after the page was published?

Yes, when the change can be restored at all. Publishing does not block it, as long as nobody changed the same recorded field since and the change record is still kept, which is 30 days.
