v2.1.0: includes/Core/AdminMenu.php
This commit is contained in:
@@ -715,13 +715,6 @@ class AdminMenu {
|
||||
'transient_list' => ['label'=>'List Transients', 'description'=>'List WordPress transients, optionally filtered by search term.', 'badges'=>['read']],
|
||||
'transient_flush_expired' => ['label'=>'Flush Expired Transients','description'=>'Delete all expired transients from the database.', 'badges'=>['admin']],
|
||||
]],
|
||||
'widgets' => ['label' => 'Widget Areas', 'tools' => [
|
||||
'widget_list_areas' => ['label'=>'List Widget Areas', 'description'=>'List all registered WordPress widget areas (sidebars).', 'badges'=>['read']],
|
||||
'widget_get_area' => ['label'=>'Get Widget Area', 'description'=>'Get all widgets in a specific widget area with their settings.', 'badges'=>['read']],
|
||||
'widget_list_registered' => ['label'=>'List Registered Widgets', 'description'=>'List all registered WordPress widget types.', 'badges'=>['read']],
|
||||
'widget_update_area' => ['label'=>'Update Widget Area', 'description'=>'Reorder or set the widget list for a widget area.', 'badges'=>['admin']],
|
||||
'widget_remove' => ['label'=>'Remove Widget', 'description'=>'Remove a specific widget from a widget area.', 'badges'=>['admin']],
|
||||
]],
|
||||
'cli' => ['label' => 'WP-CLI', 'tools' => [
|
||||
'cli_run' => ['label'=>'Run CLI Command', 'description'=>'Run a WP-CLI command (admin). Allowed: cache, cron, media, option, plugin, post, rewrite, theme, transient, user, widget, elementor, wc, yoast.', 'badges'=>['admin']],
|
||||
'cli_available' => ['label'=>'CLI Available', 'description'=>'Check if WP-CLI is available on the server.', 'badges'=>['read']],
|
||||
@@ -740,6 +733,51 @@ class AdminMenu {
|
||||
'theme_woodmart_elements' => ['label'=>'WoodMart Elements', 'description'=>'Discover WoodMart custom Elementor widgets, shortcodes, and widget areas. Active only if WoodMart theme is running.', 'badges'=>['read']],
|
||||
'theme_page_templates' => ['label'=>'Page Templates', 'description'=>'List all page templates from the active theme including Elementor canvas and full-width.', 'badges'=>['read']],
|
||||
]],
|
||||
|
||||
'file_manager'=>['label'=>'File Manager','tools'=>[
|
||||
'fs_list_dir' =>['label'=>'List Directory', 'description'=>'List files and directories in the uploads folder. Sandboxed to /wp-content/uploads/.','badges'=>['read']],
|
||||
'fs_read_file' =>['label'=>'Read File', 'description'=>'Read a file from the uploads directory. Returns text or base64 for binary.','badges'=>['read']],
|
||||
'fs_delete_file'=>['label'=>'Delete File', 'description'=>'Delete a file from the uploads directory.','badges'=>['write','destructive']],
|
||||
'fs_delete_dir' =>['label'=>'Delete Directory','description'=>'Delete a directory and all its contents from uploads. Cannot delete uploads root.','badges'=>['admin','destructive']],
|
||||
'fs_uploads_info'=>['label'=>'Uploads Info', 'description'=>'Get uploads directory path, URL, and total disk usage.','badges'=>['read']],
|
||||
]],
|
||||
'email'=>['label'=>'Email','tools'=>[
|
||||
'email_get_config' =>['label'=>'Get Email Config', 'description'=>'Get WordPress email configuration: admin email, SMTP settings, active mail plugins.','badges'=>['read']],
|
||||
'email_send_test' =>['label'=>'Send Test Email', 'description'=>'Send a test email to verify WordPress mail is working.','badges'=>['admin']],
|
||||
'email_list_log' =>['label'=>'List Email Log', 'description'=>'List recent emails from WP Mail SMTP log (if plugin is active).','badges'=>['read']],
|
||||
]],
|
||||
'transients'=>['label'=>'Transients','tools'=>[
|
||||
'transient_list' =>['label'=>'List Transients', 'description'=>'List WordPress transients, optionally filtered by key prefix or search term.','badges'=>['read']],
|
||||
'transient_get' =>['label'=>'Get Transient', 'description'=>'Get a WordPress transient value by key.','badges'=>['read']],
|
||||
'transient_set' =>['label'=>'Set Transient', 'description'=>'Set a WordPress transient with optional expiration (seconds).','badges'=>['admin']],
|
||||
'transient_delete' =>['label'=>'Delete Transient', 'description'=>'Delete a WordPress transient by key.','badges'=>['admin']],
|
||||
'transient_flush_expired' =>['label'=>'Flush Expired Transients','description'=>'Delete all expired transients from the database.','badges'=>['admin']],
|
||||
]],
|
||||
'widget_areas'=>['label'=>'Widget Areas','tools'=>[
|
||||
'widget_list_areas' =>['label'=>'List Widget Areas', 'description'=>'List all registered WordPress widget areas (sidebars).','badges'=>['read']],
|
||||
'widget_get_area' =>['label'=>'Get Widget Area', 'description'=>'Get all widgets in a specific widget area with their settings.','badges'=>['read']],
|
||||
'widget_list_registered' =>['label'=>'List Registered Widgets','description'=>'List all registered WordPress widget types.','badges'=>['read']],
|
||||
'widget_update_area' =>['label'=>'Update Widget Area', 'description'=>'Reorder or set the widget list for a widget area.','badges'=>['admin']],
|
||||
'widget_remove' =>['label'=>'Remove Widget', 'description'=>'Remove a specific widget from a widget area.','badges'=>['admin','destructive']],
|
||||
]],
|
||||
'cli'=>['label'=>'WP-CLI','tools'=>[
|
||||
'cli_available'=>['label'=>'CLI Available','description'=>'Check if WP-CLI is available on the server and list allowed commands.','badges'=>['read']],
|
||||
'cli_run' =>['label'=>'Run CLI Command','description'=>'Run a WP-CLI command (admin scope). Allowed: cache, cron, db, media, option, plugin, post, rewrite, theme, transient, user, widget, elementor, wc, yoast.','badges'=>['admin']],
|
||||
]],
|
||||
'raw_sql'=>['label'=>'Raw SQL','tools'=>[
|
||||
'sql_query' =>['label'=>'SQL Query', 'description'=>'Run a SELECT query against the WordPress database. Must be enabled in Settings.','badges'=>['admin']],
|
||||
'sql_list_tables' =>['label'=>'List Tables', 'description'=>'List WordPress database tables with row count and size.','badges'=>['admin']],
|
||||
'sql_describe_table' =>['label'=>'Describe Table', 'description'=>'Describe the columns of a WordPress database table.','badges'=>['admin']],
|
||||
]],
|
||||
'theme_discovery'=>['label'=>'Theme Discovery','tools'=>[
|
||||
'theme_elementor_support' =>['label'=>'Elementor Support', 'description'=>'Check what Elementor features the active theme supports: full-width, canvas, templates, Pro theme builder.','badges'=>['read']],
|
||||
'theme_widget_areas' =>['label'=>'Theme Widget Areas', 'description'=>'List all widget areas registered by the active theme.','badges'=>['read']],
|
||||
'theme_custom_post_types' =>['label'=>'Custom Post Types', 'description'=>'List all custom post types registered by the theme and active plugins.','badges'=>['read']],
|
||||
'theme_taxonomies' =>['label'=>'Theme Taxonomies', 'description'=>'List all public taxonomies registered by the theme and active plugins.','badges'=>['read']],
|
||||
'theme_elementor_tokens' =>['label'=>'Elementor Kit Tokens', 'description'=>'Get Elementor kit design tokens: global colors (with CSS vars), typography presets.','badges'=>['read']],
|
||||
'theme_woodmart_elements' =>['label'=>'WoodMart Elements', 'description'=>'Discover WoodMart custom Elementor widgets, shortcodes, and widget areas. Returns nothing if WoodMart is not active.','badges'=>['read']],
|
||||
'theme_page_templates' =>['label'=>'Page Templates', 'description'=>'List all page templates in the active theme, including Elementor canvas and full-width.','badges'=>['read']],
|
||||
]],
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user