WP-CLI Commands
All LW Plugins with CLI support register commands under the wp lw-* namespace. Commands are available when WP-CLIÂ is installed.
LW Disable
Manage disabled WordPress features via the command line.
wp lw-disable list
Shows a table with all features and their current status (enabled/disabled).
wp lw-disable listwp lw-disable enable <feature>
Enable (disable the WordPress feature) a specific feature.
wp lw-disable enable emojis
wp lw-disable enable comments
wp lw-disable enable xmlrpcwp lw-disable disable <feature>
Disable a feature (restores the WordPress default behavior).
wp lw-disable disable emojis
wp lw-disable disable heartbeatwp lw-disable enable-all
Enable all disable features at once.
wp lw-disable enable-allwp lw-disable disable-all
Disable all features (restores WordPress defaults).
wp lw-disable disable-allAvailable Features
| Feature | Description |
|---|---|
comments | Comments system |
admin_new_user_email | New user admin email |
emojis | Emoji scripts/styles |
embeds | oEmbed system |
heartbeat | Heartbeat API |
block_library | Gutenberg CSS |
xmlrpc | XML-RPC protocol |
rest_api | REST API restriction |
application_passwords | App passwords |
generator | Version meta tag |
shortlink | Shortlink header |
rsd_link | RSD link |
wlw_manifest | WLW manifest |
version_strings | Asset version strings |
adjacent_posts | Adjacent post links |
feeds | RSS feeds |
LW Enable
Manage enabled WordPress features via the command line.
wp lw-enable list
Shows a table with all features and their current status.
wp lw-enable listwp lw-enable enable <feature>
Enable a specific feature.
wp lw-enable enable svgwp lw-enable disable <feature>
Disable a specific feature.
wp lw-enable disable svgwp lw-enable enable-all
Enable all features at once.
wp lw-enable enable-allwp lw-enable disable-all
Disable all features (restores defaults).
wp lw-enable disable-allAvailable Features
| Feature | Description |
|---|---|
svg | SVG file uploads with security sanitization |
LW Cookie
Manage cookie consent settings, statistics, and logs via WP-CLI.
wp lw-cookie settings list
View all cookie consent settings.
wp lw-cookie settings listwp lw-cookie settings set <key> <value>
Change a specific setting.
wp lw-cookie settings set enabled true
wp lw-cookie settings set position bottomwp lw-cookie stats
View consent statistics (total consents, category breakdown).
wp lw-cookie statswp lw-cookie export
Export consent logs. Supports CSV and JSON formats.
wp lw-cookie export --format=csv
wp lw-cookie export --format=jsonwp lw-cookie clear-logs
Clean up old consent logs.
wp lw-cookie clear-logs --older-than=365LW Firewall
Manage firewall settings, IP rules, geo blocking, bots, logs, and worker via WP-CLI.
wp lw-firewall status
Show firewall status overview including storage backend, rate limits, endpoint protection status, and geo blocking info.
wp lw-firewall statuswp lw-firewall ip list <type>
List IPs in the whitelist or blacklist.
wp lw-firewall ip list whitelist
wp lw-firewall ip list blacklist
wp lw-firewall ip list whitelist --format=jsonwp lw-firewall ip add <type> <ip>
Add an IP to the whitelist or blacklist. Supports CIDR notation.
wp lw-firewall ip add whitelist 192.168.1.100
wp lw-firewall ip add blacklist 10.0.0.0/24wp lw-firewall ip remove <type> <ip>
Remove an IP from the whitelist or blacklist.
wp lw-firewall ip remove whitelist 192.168.1.100wp lw-firewall geo list
List blocked country codes.
wp lw-firewall geo list
wp lw-firewall geo list --format=jsonwp lw-firewall geo add <country_code>
Add a country to the block list.
wp lw-firewall geo add CN
wp lw-firewall geo add RUwp lw-firewall geo remove <country_code>
Remove a country from the block list.
wp lw-firewall geo remove CNwp lw-firewall config
Manage firewall configuration settings.
wp lw-firewall bots
Manage bot blocking rules and User-Agent patterns.
wp lw-firewall logs
View and manage firewall request logs.
wp lw-firewall worker
Manage the MU-plugin worker (install, update, status).
LW LMS
wp lw-lms migrate-learndash
Migrate courses, lessons, sections, and lesson order from LearnDash to LW LMS.
# Dry run (preview only)
wp lw-lms migrate-learndash --dry-run
# Verbose output
wp lw-lms migrate-learndash --verbose
# Full migration
wp lw-lms migrate-learndash| Flag | Description |
|---|---|
--dry-run | Preview the migration without making changes |
--verbose | Show detailed output during migration |
LW Translate
Manage community translations for plugins and themes.
wp lw-translate list
List available translations with their status (installed, available, needs update).
wp lw-translate listwp lw-translate install <slug>
Install a translation for a specific plugin or theme.
wp lw-translate install woocommercewp lw-translate delete <slug>
Delete an installed translation.
wp lw-translate delete woocommercewp lw-translate refresh
Refresh the translation cache from the remote repository.
wp lw-translate refreshwp lw-translate settings
View or modify translation settings (locale, tone).
wp lw-translate settingsLW ZenAdmin
Manage admin interface cleanup settings, dashboard widgets, and admin menu items.
wp lw-zenadmin menu list
List all admin menu items with their visibility status.
wp lw-zenadmin menu listwp lw-zenadmin menu show <slug>
Show a hidden menu item.
wp lw-zenadmin menu show edit.phpwp lw-zenadmin menu hide <slug>
Hide a menu item from the admin sidebar.
wp lw-zenadmin menu hide edit-comments.phpwp lw-zenadmin menu show-all
Show all hidden menu items.
wp lw-zenadmin menu show-allwp lw-zenadmin menu hide-all
Hide all non-protected menu items.
wp lw-zenadmin menu hide-allwp lw-zenadmin menu reset
Reset menu visibility to defaults.
wp lw-zenadmin menu resetwp lw-zenadmin widget
Manage dashboard widget visibility.
General Commands
The base wp lw-zenadmin command provides general settings management for Notice Collector and other features.