定制 lwplugins/lw-disable 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

lwplugins/lw-disable

Composer 安装命令:

composer require lwplugins/lw-disable

包简介

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

README 文档

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

统计信息

  • 总下载量: 285
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2026-01-26

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固