For AI in WordPress, use core for shared interfaces and permission-aware capabilities, a plugin for the business workflow and its rules, and hosting or other infrastructure for operational controls it actually supports. For example, an SEO plugin can ask a model to draft a meta description, but the plugin should decide whether the post qualifies, validate the draft, and require approval before saving it.
This is a practical design model, not an architecture WordPress requires or a claim that every host provides AI infrastructure. WordPress 7.0 shipped the AI Client and Connectors API on May 20, 2026. The Abilities API is available in WordPress 6.9 and later. At the November 23, 2026 research snapshot, WordPress 7.1.5 was the latest stable release. See the WordPress 7.0 release documentation and the WordPress 7.0 Field Guide for version-specific AI work.
The examples below are proposed implementation designs grounded in documented WordPress primitives. They are not built-in SEO integrations, official approval workflows, or guarantees that a hosting provider supplies queues, vaults, spend controls, or audit systems.
The operating model: core sets interfaces, plugins own workflows, platforms run infrastructure
Assign each responsibility to the component best placed to own it. WordPress supplies reusable primitives. The plugin decides what a correct business result means. Infrastructure supports execution and operations where available. A model response is a proposed value, not a new source of truth.
| Layer | Owns | Does not automatically provide |
|---|---|---|
| WordPress core | Shared AI interfaces, connector registration, typed abilities, and permission hooks. | Business rules, human review, spend limits, retries, or a secrets vault. |
| Plugin or domain system | Task definition, context, prompts, deterministic rules, output validation, user experience, and write decisions. | Durable workers or platform-wide credential and cost controls. |
| Hosting or other infrastructure | Potentially credential custody, worker execution, rate limits, operational records, and alerting. | Any capability not documented and supported by the specific provider. |
WordPress describes the AI Client as a standardized, provider-agnostic way for plugins to communicate with configured providers. Connector metadata can describe configuration options such as setting names, constants, and environment variables. Check the connector reference and the actual connector implementation before deciding where a credential is held. The Options API stores option data in wp_options, but that fact alone does not establish that every connector stores every secret there or how it is protected.
Make ownership concrete with three questions: Who defines valid data? Who can authorize the action? Which component must remain useful if the provider is slow or unavailable? An SEO plugin owns the meaning of its metadata field. A model may draft a value, while validation and editorial approval govern whether it is written.
Core standardizes the interface; the plugin defines a correct result; infrastructure must deliberately supply the operational controls.
Choose the layer by responsibility, not by where the AI button appears
Core is the right place for common interfaces, connector registration, typed inputs and outputs, and permission hooks that multiple plugins can use. It should not be treated as the owner of a plugin’s business rules, provider billing policy, human review, retry strategy, or secrets vault.
The plugin owns the task-specific work: preparing context, defining prompts, applying deterministic eligibility rules, validating output, presenting the result, and deciding whether a value may be saved. If a meta description is the target, the plugin or existing SEO system remains the system of record for that field.
Hosting and other infrastructure may provide credential custody, durable workers, rate limits, cost attribution, alerting, and operational records. Those capabilities must be requested or implemented deliberately. Ask the specific provider what it documents rather than treating an AI-ready label as proof of a gateway, vault, queue, vector service, or spending cap.
For example, an SEO plugin can determine whether a post is eligible and whether its meta description is blank. A model can propose text from supplied content. The plugin validates length and markup, and an editor decides whether the candidate is written. That division remains useful even when the model provider changes.
A practical workflow: draft metadata without surrendering editorial control
Consider a hypothetical plugin that drafts a meta description. The workflow is intentionally specific so each component has an accountable owner.
- Trigger and prepare: An editor requests a draft, or a relevant post revision changes. The plugin reads the site ID, post ID, source revision, title, normalized content, target field, and prompt version. It excludes ineligible posts and checks whether the field is empty or explicitly selected.
- Check before calling the model: The plugin verifies that the requesting user may perform the operation and that this revision has not already been processed. Conditions such as post status, field state, and revision identity are deterministic rules. Do not spend a model call asking an AI to evaluate them.
- Request a bounded draft: The model proposes text from the supplied content. It does not decide permissions, eligibility, or whether the value should be published. Require a predictable response contract, such as this illustrative JSON. It is not a WordPress API schema:
{
"decision": "review",
"proposed_value": "A concise draft based on the supplied post.",
"source_revision": "rev-17",
"prompt_version": "meta-draft-v1",
"policy_flags": []
}
- Validate and review: The plugin accepts only known decision values, enforces the field’s length and format rules, rejects unexpected markup, and checks that the source revision is still current. The editor reviews, revises, approves, or rejects the candidate.
- Write and retain provenance: Only after approval does the plugin write to its own metadata field. It records the workflow run ID, source revision, target field, prompt version, provider and model when available, result status, and approval actor and time. If the source changed, it marks the draft stale and returns it to the editor instead of overwriting newer work.
For duplicate prevention, define a stable write key such as site_id + object_type + object_id + target_field + source_revision + prompt_version. This key identifies one proposed write for one object revision and prompt version. Enforce it with a database uniqueness constraint or an atomic upsert where possible. A lookup followed by an insert is not safe under concurrency because two workers can both find no existing row and then create duplicates.
Keep request observations at a different grain. A model request key can combine site_id + workflow_run_id + request_sequence. A workflow run can contain several requests, while a daily aggregate should identify its period, dimensions, and metric version. Do not use a date, prompt text, or post ID alone as a universal deduplication key.
Measure usefulness with valid-result rate, editor acceptance and rejection, duplicate-write rate, latency, technical failure rate, and attributable spend when available. These are metrics to instrument, not outcomes guaranteed by the AI Client or a tutorial.
Use WordPress abilities and MCP with narrow permissions
An Abilities API ability is a discoverable, typed unit of WordPress functionality that can define inputs, outputs, permissions, and an execution callback. It is not an automatic approval system. The official Abilities API documentation describes these primitives. The WordPress MCP Adapter bridges abilities to MCP clients using transports including HTTP and STDIO.
Abilities are not all exposed to the default MCP server automatically. Follow the installed adapter release’s documentation and explicitly expose only intended abilities. An MCP connection’s authentication and an ability’s application-level authorization are separate checks. Start with read-only abilities. Add narrow write abilities only when permission checks, input validation, logging, and any required human approval are designed.
Keep delete, publish, price changes, and customer messages out of an initial exposure set. For a write action, validate permissions independently of model instructions and make repeated execution safe through an idempotency rule in the plugin or persistence layer. The official MCP Adapter tutorial explains the abilities-to-MCP pattern, not a complete approval or business workflow.
Keep slow generation off critical page requests
WP-Cron checks for due events on page loads, so scheduled work can run late on a low-traffic site. WordPress documents using a system scheduler to trigger WP-Cron when more predictable triggering is needed. WP-Cron is not a continuously running, durable worker queue.
For a longer task, the plugin can create a job record with a job ID, workflow run ID, source revision, status, attempt count, next attempt time, last error, and idempotency key. A proposed execution flow is:
- The plugin stores a pending job and its source revision.
- A scheduler or worker claims the job with a lease or equivalent concurrency control.
- The worker makes a bounded model request and records the attempt.
- The plugin validates the response and confirms that the source revision has not changed.
- The result waits for approval if required. Retryable errors are retried within policy, while terminal errors go to a named operator.
For an interactive feature, use a bounded request with visible loading and failure states rather than holding a page-render request open for unbounded provider work. Choose the execution method based on job duration, traffic predictability, retry needs, and the hosting provider’s documented worker limits. Confirm those limits with the provider instead of assuming that a host supplies a durable queue.
Credential, privacy, and observability decisions before launch
Verify the selected connector’s actual configuration path, who can read the credential, and whether it appears in application settings, deployment configuration, or backups. WordPress documents connector metadata such as setting names, constants, and environment variables, while the Options API documents storage in wp_options. These facts do not prove that every connector stores every secret in that table or that every stored value is protected in the same way. Check the specific connector implementation.
Limit provider-key scope and review the provider’s current retention, regional processing, and data-transfer terms for the specific model and account. Do not make compliance claims from a general provider name alone.
Keep operational records at the right grain. A per-request record represents one model or API request and can include request ID, workflow run ID, site, plugin or workflow, provider and model, timestamps, status, latency, retries, and token or cost data when available. A workflow-run record represents one logical task and may link to several requests. Daily or monthly aggregates summarize a defined period and dimensions; they are not substitutes for request-level records.
Use separate identifiers for separate records. A request key can combine site_id + workflow_run_id + request_sequence. A write key should distinguish object, target field, source revision, and prompt version. A citation record, if used, should identify the workflow run and citation instance. Avoid date-only or prompt-text-only deduplication because separate runs or model variants can share those values.
- Confirm the connector’s credential configuration, access scope, and backup exposure.
- Identify the permission check and human owner for consequential writes.
- Record individual requests and workflow runs separately from period aggregates.
- Enforce revision-aware deduplication with a uniqueness rule or atomic upsert where concurrency matters.
- Review the selected provider and model’s retention, regional processing, and transfer terms.
- Name the owner for terminal failures and define the latency, failure, duplicate, review, and spend signals to monitor.
Roll out in reversible stages
Start with one narrowly defined task and document the current manual process. Separate explicit rules, such as “field is empty” or “revision already processed,” from tasks that genuinely need interpretation or drafting. Run the model in suggestion-only mode, compare its proposals with human decisions, and record correction reasons.
Before allowing writes, add schema validation, permissions, revision-aware idempotency, and an approval state. Test provider timeouts, malformed output, duplicate delivery, concurrent workers, changed source revisions, and permission denial. Move to selective automation only when acceptance criteria are clear, an accountable owner is named, and correction or rollback is possible.
The practical boundary remains simple: core provides reusable interfaces, plugins define and govern the task, and the operations or hosting layer must deliberately provide the controls that neither the model nor a WordPress primitive guarantees. For teams that need help defining bounded AI actions, permissions, and exception ownership, see ConsultEvo’s AI-agent services.
