update_page_from_file
Update a WordPress page with Elementor data from specified files, returning a boolean to confirm success. Requires page ID and Elementor file path for operation.
Instructions
Updates an existing page in WordPress with Elementor data from a file, it will return a boolean value to indicate if the update was successful.
Input Schema
Name | Required | Description | Default |
---|---|---|---|
contentFilePath | No | The absolute path to the file to update the WordPress content from, optional. | |
elementorFilePath | Yes | The absolute path to the file to update the Elementor data from. | |
pageId | Yes | The ID of the page to update. | |
status | No | The status for the page (e.g., 'publish', 'draft'). | |
title | No | The title for the page. |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"contentFilePath": {
"description": "The absolute path to the file to update the WordPress content from, optional.",
"type": "string"
},
"elementorFilePath": {
"description": "The absolute path to the file to update the Elementor data from.",
"type": "string"
},
"pageId": {
"description": "The ID of the page to update.",
"exclusiveMinimum": 0,
"type": "integer"
},
"status": {
"description": "The status for the page (e.g., 'publish', 'draft').",
"enum": [
"publish",
"future",
"draft",
"pending",
"private"
],
"type": "string"
},
"title": {
"description": "The title for the page.",
"type": "string"
}
},
"required": [
"pageId",
"elementorFilePath"
],
"type": "object"
}