← All changes
|
includes/abilities/widgets/wdesignkit-convert-widget.php
+4
-3
2.5.0
→
2.7.0
View file →
| @@ -9,12 +9,12 @@ | ||
| 9 | 9 | exit(); |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | wp_register_ability('wdesignkit/convert-widget', [ |
| 13 | - 'label' => __('Convert WDesignKit Widget Builder', 'sprout-mcp'), | |
| 13 | + 'label' => __('Convert WDesignKit Widget Builder', 'wdesignkit'), | |
| 14 | 14 | 'description' => __( |
| 15 | 15 | 'Converts a widget authored for one builder (e.g. Elementor) into a different builder (e.g. Gutenberg). NOTE: Automatic cross-builder conversion is not currently supported by the WDesignKit plugin. This ability returns a structured explanation and suggests the recommended manual workflow instead.', |
| 16 | - 'sprout-mcp', | |
| 16 | + 'wdesignkit', | |
| 17 | 17 | ), |
| 18 | 18 | 'category' => 'wdesignkit', |
| 19 | 19 | 'input_schema' => [ |
| 20 | 20 | 'type' => 'object', |
| @@ -45,10 +45,11 @@ | ||
| 45 | 45 | 'guidance' => ['type' => 'array', 'items' => ['type' => 'string']], |
| 46 | 46 | ], |
| 47 | 47 | ], |
| 48 | 48 | 'execute_callback' => 'wdesignkit_mcp_convert_widget', |
| 49 | - 'permission_callback' => 'sprout_mcp_permission_callback', | |
| 49 | + 'permission_callback' => 'wdesignkit_mcp_permission_callback', | |
| 50 | 50 | 'meta' => [ |
| 51 | + 'public' => true, | |
| 51 | 52 | 'show_in_rest' => true, |
| 52 | 53 | 'mcp' => ['public' => true], |
| 53 | 54 | 'annotations' => [ |
| 54 | 55 | 'instructions' => implode("\n", [ |