wp_create_content
Bulk-create WordPress posts or pages from block-based content, with optional SEO meta, dry-run preview, and duplicate slug skipping.
Instructions
Bulk-create posts/pages, rendered into the site's builder (Divi 4 / Gutenberg).
Each item: {title, blocks:[...], slug?, status?}. Blocks are builder-agnostic:
{kind:'heading',level,text} | {kind:'paragraph',text} | {kind:'button',text,url} |
{kind:'image',url,alt?} (use the url returned by wp_upload_media).
Optional seo (an object: title/description/canonical/noindex) is applied to every
created item's meta (REST transport only). DEFAULTS TO dry_run=true (returns a
per-item plan + a seo_preview; writes nothing). Pass dry_run=false to apply.
Idempotent: existing slugs are skipped. Requires a profile (run wp_discover_site
first). Prod writes require allow_prod=true.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seo | No | ||
| items | Yes | ||
| dry_run | No | ||
| install | Yes | ||
| post_type | No | page | |
| allow_prod | No |