← All changes
|
includes/abilities/settings/wdesignkit-features-manager-toggle.php
+8
-6
2.5.5
→
2.7.0
View file →
| @@ -9,12 +9,12 @@ | ||
| 9 | 9 | exit(); |
| 10 | 10 | } |
| 11 | 11 | |
| 12 | 12 | wp_register_ability('wdesignkit/get-features-manager', [ |
| 13 | - 'label' => __('Get WDesignKit Feature Manager States', 'sprout-mcp'), | |
| 13 | + 'label' => __('Get WDesignKit Feature Manager States', 'wdesignkit'), | |
| 14 | 14 | 'description' => __( |
| 15 | 15 | 'Returns the current enabled/disabled state for WDesignKit plugin features: widget builder master switch, template library master switch, code-snippet module, and debug/developer mode.', |
| 16 | - 'sprout-mcp', | |
| 16 | + 'wdesignkit', | |
| 17 | 17 | ), |
| 18 | 18 | 'category' => 'wdesignkit', |
| 19 | 19 | 'input_schema' => [ |
| 20 | 20 | 'type' => 'object', |
| @@ -26,10 +26,11 @@ | ||
| 26 | 26 | 'features' => ['type' => 'object'], |
| 27 | 27 | ], |
| 28 | 28 | ], |
| 29 | 29 | 'execute_callback' => 'wdesignkit_mcp_get_features_manager', |
| 30 | - 'permission_callback' => 'sprout_mcp_permission_callback', | |
| 30 | + 'permission_callback' => 'wdesignkit_mcp_permission_callback', | |
| 31 | 31 | 'meta' => [ |
| 32 | + 'public' => true, | |
| 32 | 33 | 'show_in_rest' => true, |
| 33 | 34 | 'mcp' => ['public' => true], |
| 34 | 35 | 'annotations' => [ |
| 35 | 36 | 'instructions' => implode("\n", [ |
| @@ -44,12 +45,12 @@ | ||
| 44 | 45 | ], |
| 45 | 46 | ]); |
| 46 | 47 | |
| 47 | 48 | wp_register_ability('wdesignkit/toggle-features-manager', [ |
| 48 | - 'label' => __('Toggle WDesignKit Plugin Features', 'sprout-mcp'), | |
| 49 | + 'label' => __('Toggle WDesignKit Plugin Features', 'wdesignkit'), | |
| 49 | 50 | 'description' => __( |
| 50 | 51 | 'Enables or disables individual WDesignKit plugin features: the widget builder master switch, the template library master switch, the code-snippet module, and debug/developer mode. Only the keys you pass are changed.', |
| 51 | - 'sprout-mcp', | |
| 52 | + 'wdesignkit', | |
| 52 | 53 | ), |
| 53 | 54 | 'category' => 'wdesignkit', |
| 54 | 55 | 'input_schema' => [ |
| 55 | 56 | 'type' => 'object', |
| @@ -81,10 +82,11 @@ | ||
| 81 | 82 | 'features' => ['type' => 'object'], |
| 82 | 83 | ], |
| 83 | 84 | ], |
| 84 | 85 | 'execute_callback' => 'wdesignkit_mcp_toggle_features_manager', |
| 85 | - 'permission_callback' => 'sprout_mcp_permission_callback', | |
| 86 | + 'permission_callback' => 'wdesignkit_mcp_permission_callback', | |
| 86 | 87 | 'meta' => [ |
| 88 | + 'public' => true, | |
| 87 | 89 | 'show_in_rest' => true, |
| 88 | 90 | 'mcp' => ['public' => true], |
| 89 | 91 | 'annotations' => [ |
| 90 | 92 | 'instructions' => implode("\n", [ |