Display the current status of all features.
$ wp lw-zenadmin status
+-----------------+----------+
| feature | status |
+-----------------+----------+
| notices_enabled | enabled |
| widgets_enabled | enabled |
+-----------------+----------+
Enable a feature.
wp lw-zenadmin enable notices_enabled
wp lw-zenadmin enable widgets_enabledDisable a feature.
wp lw-zenadmin disable notices_enabled
wp lw-zenadmin disable widgets_enabledList all discovered widgets and their visibility status.
$ wp lw-zenadmin widget list
+------------------------+-------------------+---------+-------------+
| widget_id | name | visible | group |
+------------------------+-------------------+---------+-------------+
| dashboard_right_now | At a Glance | yes | core |
| dashboard_activity | Activity | yes | core |
| dashboard_quick_press | Quick Draft | yes | core |
| dashboard_primary | WordPress Events | yes | core |
| dashboard_site_health | Site Health | yes | core |
| woocommerce_dashboard | WooCommerce Stats | yes | woocommerce |
| my_custom_widget | My Plugin Widget | no | third-party |
+------------------------+-------------------+---------+-------------+
Supports --format=table (default), csv, json, yaml:
wp lw-zenadmin widget list --format=jsonShow a widget on the dashboard.
wp lw-zenadmin widget show dashboard_quick_press
# Success: Widget 'Quick Draft' (dashboard_quick_press) is now shown.Hide a widget from the dashboard.
wp lw-zenadmin widget hide dashboard_primary
# Success: Widget 'WordPress Events' (dashboard_primary) is now hidden.Show all discovered widgets.
wp lw-zenadmin widget show-all
# Success: All widgets are now visible.Hide all widgets from the dashboard.
wp lw-zenadmin widget hide-all
# Success: All widgets are now hidden.Reset widget visibility to defaults (Core + WooCommerce visible, Third-party hidden).
wp lw-zenadmin widget reset
# Success: Widget visibility reset to defaults.List all discovered admin menu items and their visibility.
$ wp lw-zenadmin menu list
+---------------------+-----------+---------+-------------+-----------+
| slug | name | visible | group | protected |
+---------------------+-----------+---------+-------------+-----------+
| index.php | Dashboard | yes | core | yes |
| edit.php | Posts | yes | core | no |
| tools.php | Tools | yes | core | no |
+---------------------+-----------+---------+-------------+-----------+
Supports --format=table (default), csv, json, yaml.
Show a menu item in the admin sidebar.
wp lw-zenadmin menu show tools.php
# Success: Menu 'Tools' (tools.php) is now shown.Hide a menu item from the admin sidebar. Protected menus cannot be hidden.
wp lw-zenadmin menu hide tools.php
# Success: Menu 'Tools' (tools.php) is now hidden.Show all menu items.
wp lw-zenadmin menu show-all
# Success: All menu items are now visible.Hide all non-protected menu items.
wp lw-zenadmin menu hide-all
# Success: All non-protected menu items are now hidden.Reset menu visibility to defaults (all visible).
wp lw-zenadmin menu reset
# Success: Menu visibility reset to defaults (all visible).widget listonly shows widgets after the Dashboard page has been visited at least once in the browser (auto-discovery).menu listonly shows menus after the admin has been visited at least once in the browser (auto-discovery).- Use
widget list/menu listto look up IDs forshowandhidecommands. widget reset/menu resetdeletes saved settings and falls back to built-in defaults.