Guide

Spoken Article migration guide

Migrate spoken article data from parent post meta into private spoken-article CPT posts.

When to run

Use this when parent posts still hold legacy keys such as spoken_article, spoken_article_transcript, and related voice/interstitial meta, and you need CPT-backed records.

Command

# Preview
wp prc spoken-article migrate --dry-run

# Apply
wp prc spoken-article migrate

# Apply and remove old parent meta keys
wp prc spoken-article migrate --cleanup
FlagDefaultPurpose
--dry-runoffLog actions without writing
--batch-size=<n>50Posts per batch
--cleanupoffDelete legacy parent meta after a successful migrate

What it does

For each parent in enabled post types that still has spoken meta, the command:

  1. Creates a spoken-article CPT post when needed
  2. Copies relevant meta
  3. Moves the transcript into CPT post_content
  4. Sets the player-enabled toggle on the parent
  5. Optionally removes old parent meta keys when --cleanup is set

Source: includes/class-cli-migrate.php.

Was this helpful?