承接 inpsyde/disable-comments 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

inpsyde/disable-comments

Composer 安装命令:

composer require inpsyde/disable-comments

包简介

Entirely ditches comments as a WordPress feature.

README 文档

README

A WordPress plugin that completely disables comments as a WordPress feature.

PHP Quality Assurance

Table Of Contents

Features

This package is a simple no-configuration plugin. Install, activate, and forget.

It does not distinguish between types of comments or post types; it makes it look like comments are not a WordPress feature.

Among other things:

  • Forces comments-related configuration to be disabled
  • Prevents comments from being added
  • Prevents comment queries from running
  • Removes any reference to comments from the dashboard
  • Makes sure all posts have comments disabled
  • Removes comment-related editor blocks and the "Discussion" editor sidebar panel
  • Removes comment-related REST API endpoints

Warning

The plugin uses the allowed_block_types_all filter to disable comment-related blocks. When that filter runs, Javascript-only registered blocks are not recognized and all removed by activating this plugin.

A note about themes

A theme might hardcode comments-related output even if comments are disabled.

That might be the case for FSE themes, but for those, it should be possible to use the site editor to remove the undesired parts of templates. "Traditional" themes should not output anything comments-related if comments are closed (and this plugin ensures that). If you see any comments-related output in the theme, please contact the developer or use a child theme to replace the offending templates/template parts.

Requirements

  • PHP 8.0+
  • WP 6.0+

The plugin has no production dependencies. When installed for development via Composer, the package requires:

Installation

The best way to install this package is with Composer:

$ composer require inpsyde/disable-comments

Crafted by Syde

The team at Syde is engineering the Web since 2006.

Credits

Originally born as a fork of https://github.com/bueltge/remove-comments-absolutely.

Copyright and License

This package is free software distributed under the terms of the GNU General Public License version 2 or (at your option) any later version. For the full license, see LICENSE.

Contributing

Bug reports and contributions are welcome, but please don't ask to add features or configurations. For less "radical" approaches to the topic, several other options are available.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2023-05-16

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固