FastAI Claude REST Fields: Two WordPress Plugins for AI-Assisted Publishing

FastAI Claude REST Fields WordPress plugin — teal data pipeline connecting WordPress to an AI terminal displaying Yoast SEO fields

Two free WordPress plugins that expose Yoast SEO and BBH Custom Schema fields to the REST API, enabling AI tools such as Claude to read and write metadata as part of an automated publishing workflow.

The Problem

WordPress exposes post content, title, and categories through its REST API, but Yoast SEO fields and BBH Custom Schema data are stored as private meta keys and are invisible to external tools by default. An AI writing assistant can draft and publish a post, but cannot set the focus keyphrase, SEO title, meta description, or JSON-LD schema without custom registration code.

Both plugins solve this by registering the relevant fields with show_in_rest: true and mirroring writes to the underlying private meta keys that Yoast and BBH actually read from.

FastAI Claude REST Fields – Yoast

Registers three fields as writable REST meta:

  • yoast_focuskw — mirrors to _yoast_wpseo_focuskw
  • yoast_title — mirrors to _yoast_wpseo_title
  • yoast_metadesc — mirrors to _yoast_wpseo_metadesc

On write, each value is copied to the actual Yoast meta key via both the rest_after_insert_post action and direct updated_post_meta and added_post_meta hooks, ensuring the write lands correctly whether it comes via a full post update or a targeted meta update call.

Download FastAI Claude REST Fields – Yoast

FastAI Claude REST Fields – BBH Schema

Registers bbh_custom_schema as a writable REST meta field and mirrors writes to _bbhcuschma_custom_schema, which is the internal key used by the BBH Custom Schema plugin. This means JSON-LD written by an AI tool via the REST API appears correctly in the BBH metabox in the post editor, and is output by BBH in the page <head> as expected.

The plugin strips any <script> tags from the value on write, since BBH expects raw JSON content only.

Download FastAI Claude REST Fields – BBH Schema

Installation

Install each plugin via Plugins → Add New → Upload Plugin. Both can be used on the same site simultaneously. They are independent of each other and carry no shared dependencies.

Both are built under the FastAI brand and are designed for use across multiple WordPress sites. Source code is a single PHP file per plugin.

Compatibility

Requires WordPress 6.0 or later. The Yoast plugin requires Yoast SEO (free or premium) to be active. The BBH Schema plugin requires the BBH Custom Schema plugin. Both have been tested on self-hosted WordPress and WordPress.com Atomic sites.

Discover more from fastai.news

Subscribe now to keep reading and get access to the full archive.

Continue reading