https://github.com/lwplugins/lw-disable
Disable WordPress features: comments, emojis, embeds, heartbeat, XML-RPC, and more
https://github.com/lwplugins/lw-disable
lightweight performance wordpress wordpress-plugin
Last synced: 5 months ago
JSON representation
Disable WordPress features: comments, emojis, embeds, heartbeat, XML-RPC, and more
- Host: GitHub
- URL: https://github.com/lwplugins/lw-disable
- Owner: lwplugins
- License: other
- Created: 2026-01-26T08:55:13.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2026-02-08T14:10:37.000Z (5 months ago)
- Last Synced: 2026-02-08T21:03:28.323Z (5 months ago)
- Topics: lightweight, performance, wordpress, wordpress-plugin
- Language: PHP
- Size: 48.8 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: license.txt
Awesome Lists containing this project
README
# Lightweight Disable
Disable WordPress features: comments, commands, emojis, embeds, and more.
[](https://packagist.org/packages/lwplugins/lw-disable)
[](https://php.net)
[](https://wordpress.org)
[](https://www.gnu.org/licenses/gpl-2.0.html)
## Features
### General
- **Disable Commands** - Remove the admin command palette (Cmd/Ctrl+K)
- **Disable Comments** - Remove comments completely from your site
### Performance
- **Disable Emojis** - Remove WordPress emoji scripts and styles
- **Disable Embeds** - Remove oEmbed discovery and scripts
- **Disable Heartbeat** - Remove WordPress heartbeat API
- **Disable Block Library** - Remove Gutenberg CSS on frontend
### Security
- **Disable XML-RPC** - Disable XML-RPC protocol
- **Restrict REST API** - Limit REST API to logged-in users only
- **Disable App Passwords** - Remove application passwords feature
- **Remove Generator** - Hide WordPress version meta tag
### Head Cleanup
- **Remove Shortlink** - Remove shortlink from head
- **Remove RSD Link** - Remove Really Simple Discovery link
- **Remove WLW Manifest** - Remove Windows Live Writer link
- **Remove Version Strings** - Strip ?ver= from asset URLs
- **Remove Adjacent Posts** - Remove prev/next post links
### Content
- **Disable RSS Feeds** - Disable all RSS feeds completely
## Installation
```bash
composer require lwplugins/lw-disable
```
Or download and upload to `/wp-content/plugins/`.
## Usage
### Admin UI
1. Go to **LW Plugins → Disable**
2. Check the features you want to disable
3. Save
### WP-CLI
```bash
# List all features and their status
wp lw-disable list
# Enable a feature
wp lw-disable enable emojis
wp lw-disable enable comments
wp lw-disable enable xmlrpc
# Disable a feature
wp lw-disable disable emojis
wp lw-disable disable heartbeat
# Enable all features at once
wp lw-disable enable-all
# Disable all features (restore WP defaults)
wp lw-disable disable-all
```
**Available features:**
| Feature | Description |
|---------|-------------|
| `commands` | Admin command palette |
| `comments` | Comments system |
| `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 |
## Links
- [GitHub](https://github.com/lwplugins/lw-disable)
- [Packagist](https://packagist.org/packages/lwplugins/lw-disable)
- [LW Plugins](https://lwplugins.com)