Actions17
Page → Update
AI-generatedSummary
Updates a WordPress page with specified field values
Inputs
- pageId (required) — Unique identifier of the page to update
- updateFields — Collection of field/value pairs to apply to the page
- authorId — Author ID or name for the page
- parent — ID of the parent page
- title — New title for the page
- content — New content for the page
- slug — Custom slug for the page
- password — Password to protect the page content
- status — Publish status (draft, publish, etc)
- commentStatus — Whether comments are open
- pingStatus — Whether pingbacks/trackbacks are open
- pageTemplate — Template selection for Elementor or theme
- menuOrder — Order of the page in the navigation
- featuredMediaId — ID of the featured media attached to the page
Output shape
single page record
Returns the updated page object; if continueOnFail is enabled, may return error details instead.
Examples
Example 1: Update page title and status
Set pageId to 123, updateFields.title to 'New Title', updateFields.status to 'publish'
Example 2: Publish a draft page with a password
pageId=456, updateFields.title='My Page', updateFields.status='publish', updateFields.password='secret'
Example 3: Reorder a page and set a featured media
pageId=789, updateFields.menuOrder=10, updateFields.featuredMediaId=12