Actions12
Page → Create or Update
AI-generatedSummary
Create or update a WordPress page with specified title, content, status, and optional metadata. Supports creating a new page or updating an existing one identified by slug if enabled. Users can set SEO metadata, featured image via URL, publish date for scheduling, excerpts, URL slug, FAQs, and call-to-action elements.
Inputs
- title (required) — Title of the page
- content (required) — HTML content of the page
- status (required) — Publication status (Published, Draft, Pending Review, Private, Future)
- updateBySlug — If true on create, updates an existing page with the same slug instead of creating new
- date — Publish date and time for scheduling when status is 'Future' (supports timezone notation)
- excerpt — Short summary of the page for archives and SEO
- slug — URL-friendly slug for the page
- featured_image_url — URL of image to download and set as the featured image
- seoOptions — SEO metadata including meta title, description, keywords, Open Graph and Twitter cards, JSON-LD structured data; also configure FAQ and CTA options
- faqValues — FAQ questions and answers to associate with the page if FAQ update is enabled
- ctaValues — Call to Action button text and URL to associate with the page if CTA update is enabled
Output shape
a single record
Returns the full page object including updated properties, SEO metadata, FAQ, CTA, and featured image URL if specified. The operation respects scheduling for 'Future' status and updates the page if an existing one matches the slug when 'updateBySlug' is true on create. Errors include detailed messages for validation and API issues.
Examples
Example 1: Create a new page with title, content, scheduled publish date, and SEO metadata
Provide title, content, status='future', publish date in ISO format, and SEO metadata fields like meta_title and meta_description.
Example 2: Update an existing page by slug with new content and featured image
Set operation to create with 'updateBySlug' enabled, provide the slug of the existing page, new content and a featured image URL to update the page.