PluginProbe
Elementor Website Builder – more than just a page builder / 4.1.4
Elementor Website Builder – more than just a page builder v4.1.4
4.3.1 4.3.0 4.3.0-beta3 4.3.0-beta2 4.3.0-beta1 4.2.4 4.2.3 4.2.2 4.2.1 4.2.0 4.1.5 4.2.0-beta2 4.2.0-dev2 4.2.0-beta1 4.1.4 4.1.3 4.1.2 4.1.1 4.1.0 4.1.0-beta3 4.1.0-dev3 4.0.9 4.1.0-beta2 4.1.0-dev2 4.0.8 All 454 releases
← All changes | modules/mcp/abilities/update-settings-ability.php +3 -10 4.3.0-beta3 → 4.1.4 View file →
@@ -1,9 +1,8 @@
1 1 <?php
2 2
3 3 namespace Elementor\Modules\Mcp\Abilities;
4 4
5 -use Elementor\Modules\Mcp\Abilities\Utils\Document_Mutation_Links;
6 5 use Elementor\Plugin;
7 6
8 7 if ( ! defined( 'ABSPATH' ) ) {
9 8 exit;
@@ -14,16 +13,12 @@
14 13 protected function get_ability_id(): string {
15 14 return 'elementor/update-page-settings';
16 15 }
17 16
18 - public function is_exposed_via_proxy(): bool {
19 - return false;
20 - }
21 -
22 17 protected function get_definition(): Ability_Definition {
23 18 return new Ability_Definition(
24 19 __( 'Update Elementor Page Settings', 'elementor' ),
25 - __( 'Updates Elementor document-level settings for a post (for example page layout, title visibility, or custom page settings). Pass only the keys you want to change. Ask the user for the URL or post ID. Use get-page-structure when you also need the element tree. Requires permission to edit the target post.', 'elementor' ),
20 + __( 'Updates Elementor document-level settings for a post (for example page layout, title visibility, or custom page settings). Pass only the keys you want to change. Use list-pages to resolve IDs and get-page-structure when you also need the element tree. Requires permission to edit the target post.', 'elementor' ),
26 21 'elementor',
27 22 [
28 23 'type' => 'object',
29 24 'properties' => [
@@ -28,10 +23,8 @@
28 23 'type' => 'object',
29 24 'properties' => [
30 25 'success' => [ 'type' => 'boolean' ],
31 26 'post_id' => [ 'type' => 'integer' ],
32 - 'preview_url' => Document_Mutation_Links::preview_schema_property(),
33 - 'llm_instructions' => Document_Mutation_Links::llm_instructions_schema_property(),
34 27 ],
35 28 ],
36 29 [
37 30 'annotations' => [
@@ -36,9 +29,9 @@
36 29 [
37 30 'annotations' => [
38 31 'readonly' => false,
39 32 'idempotent' => false,
40 - 'destructive' => true,
33 + 'destructive' => false,
41 34 ],
42 35 ],
43 36 function () {
44 37 return current_user_can( 'edit_posts' );
@@ -91,7 +84,7 @@
91 84
92 85 return [
93 86 'success' => true,
94 87 'post_id' => $post_id,
95 - ] + Document_Mutation_Links::for_document( $document );
88 + ];
96 89 }
97 90 }