An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# Lightweight Disable

Disable WordPress features: comments, commands, emojis, embeds, and more.

[![Packagist](https://img.shields.io/packagist/v/lwplugins/lw-disable.svg)](https://packagist.org/packages/lwplugins/lw-disable)
[![PHP](https://img.shields.io/badge/PHP-8.1%2B-blue.svg)](https://php.net)
[![WordPress](https://img.shields.io/badge/WordPress-6.0%2B-blue.svg)](https://wordpress.org)
[![License](https://img.shields.io/badge/License-GPL--2.0-green.svg)](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)