Guide

Content Transformer Abilities

WordPress Abilities API tool for AI and automation clients.

Ability index

AbilityPermissionSide effects
prc-content-transformer/transformedit_posts (on target site)Runs AI transform; may write cache

Category: data-retrieval
Meta: show_in_rest: true, MCP public tool, readonly annotation (non-idempotent)
Source: includes/ai-experiment/class-content-transformer-ability.php

prc-content-transformer/transform

Transforms a post into a provider-specific format using the same pipeline as REST and CLI.

Reference

Input

Typed options, defaults, and constraints in one scannable reference.
4 fields
post_id number required
Post ID to transform.
provider string required
Provider slug (plain-text, apple-news, email).
force boolean
Bypass cache.
site_id number
Multisite blog ID; defaults via platform AI utils.
Reference

Output

Typed options, defaults, and constraints in one scannable reference.
5 fields
status string
success, cached, or failed.
output string
Transformed content.
provider string
Provider slug used.
tokens_used number
Estimated tokens consumed.
error string
Error message when failed.

If the plugin is inactive on the target site, the ability returns plugin_inactive_on_site. Discover providers via GET /prc-content-transformer/v1/providers.

Was this helpful?