lwplugins/lw-disable

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

Maintainers

Package info

github.com/lwplugins/lw-disable

Type:wordpress-plugin

pkg:composer/lwplugins/lw-disable

Fund package maintenance!

sinann.io

Statistics

Installs: 32

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 1

v1.3.5 2026-03-22 08:10 UTC

This package is auto-updated.

Last update: 2026-03-23 09:31:03 UTC


README

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

Packagist PHP WordPress License

LW Disable Settings

Features

General

  • 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

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

# 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
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

Sponsor

Sinann

Supported by Sinann