[wordpress插件] Disable Comments禁用评论

wordpress 插件 文章 2020-04-17 19:20 537 0 全屏看文

AI助手支持GPT4.0

评分
98
描述

This plugin allows administrators to globally disable comments on any post type (posts, pages, attachments, etc.) so that these settings cannot be overridden for individual posts.

此插件允许管理员全局禁用对任何帖子类型(帖子,页面,附件等)的评论,以使这些设置不能被单个帖子覆盖。

It also removes all comment-related fields from edit and quick-edit screens.

它还从编辑和快速编辑屏幕中删除所有与注释相关的字段。

On multisite installations, it can be used to disable comments on the entire network.

在多站点安装中,可用于禁用整个网络上的评论。

Additionally, comment-related items can be removed from the Dashboard, Widgets, the Admin Menu and the Admin Bar.

此外,可以从仪表板,小部件,管理菜单和管理栏删除与注释相关的项目。

Important note: Use this plugin if you don’t want comments at all on your site (or on certain post types).

重要提示:如果您根本不想在您的网站(或某些帖子类型)上发表评论,请使用此插件。

Don’t use it if you want to selectively disable comments on individual posts – WordPress lets you do that anyway.

如果您想有选择地禁用单个帖子的评论,请不要使用它-WordPress仍然可以使您做到这一点。

If you don't know how to disable comments on individual posts, there are instructions in the FAQ.

如果您不知道如何禁用单个帖子的评论,请参见常见问题解答中的说明。

p>

>

If you come across any bugs or have suggestions, please use the plugin support forum.

如果您遇到任何错误或有建议,请使用插件支持论坛。

I can’t fix it if I don’t know it’s broken!

如果不知道它坏了,我将无法修复!

Please check the FAQ for common issues.

请检查常见问题解答以了解常见问题。

Want to contribute?

想贡献吗?

Here’s the GitHub development repository.

这是 GitHub开发存储库

A must-use version of the plugin is also available.

该插件的必备版本也可用。

Details

详细信息

The plugin provides the option to completely disable the commenting feature in WordPress.

该插件提供了完全禁用WordPress中的评论功能的选项。

When this option is selected, the following changes are made:

选择此选项后,将进行以下更改:

    • All “Comments” links are hidden from the Admin Menu and Admin Bar;
    • 所有“评论”链接都从管理菜单和管理栏中隐藏;

    • All comment-related sections (“Recent Comments”, “Discussion” etc.) are hidden from the WordPress Dashboard;
    • 所有与评论相关的部分(“最新评论”,“讨论”等)都从WordPress仪表板中隐藏了;

    • All comment-related widgets are disabled (so your theme cannot use them);
    • 所有与评论相关的小部件都被禁用(因此您的主题无法使用它们);

    • The “Discussion” settings page is hidden;
    • “讨论”设置页面已隐藏;

    • All comment RSS/Atom feeds are disabled (and requests for these will be redirected to the parent post);
    • 所有评论RSS / Atom提要均被禁用(对它们的请求将被重定向到父帖子);

    • The X-Pingback HTTP header is removed from all pages;
    • X-Pingback HTTP标头已从所有页面中删除;

    • Outgoing pingbacks are disabled.
    • 传出的pingback被禁用。

    Please delete any existing comments on your site before applying this setting, otherwise (depending on your theme) those comments may still be displayed to visitors.

    在应用此设置之前,请删除您网站上的所有现有评论,否则(取决于您的主题)这些评论可能仍会向访问者显示。

    You can use the Delete Comments tool to delete any existing comments on your site.

    您可以使用“删除评论”工具删除网站上的所有现有评论。

    Advanced Configuration

    高级配置

    Some of the plugin’s behaviour can be modified by site administrators and plugin/theme developers through code:

    网站管理员和插件/主题开发人员可以通过代码修改某些插件的行为:

      • Define DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE and set it to false to prevent the plugin from replacing the theme’s comment template with an empty one.

        定义 DISABLE_COMMENTS_REMOVE_COMMENTS_TEMPLATE 并将其设置为 false ,以防止插件将主题的注释模板替换为空的主题模板。

      • Define DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS and set it to true to prevent the plugin from hiding the Discussion settings page.

        定义 DISABLE_COMMENTS_ALLOW_DISCUSSION_SETTINGS ,并将其设置为 true ,以防止插件隐藏“讨论设置”页面。

      These definitions can be made either in your main wp-config.php or in your theme’s functions.php file.

      这些定义可以在您的主 wp-config.php 或主题的 functions.php 文件中进行。

安装步骤

    1. Upload the plugin folder to the /wp-content/plugins/ directory
    2. 将插件文件夹上传到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. The plugin settings can be accessed via the ‘Settings’ menu in the administration area (either your site administration for single-site installs, or your network administration for network installs).
    6. 可以通过管理区域中的“设置”菜单(用于单站点安装的站点管理,或用于网络安装的网络管理)访问插件设置。

下载地址
https://downloads.wordpress.org/plugin/disable-comments.zip
-EOF-

AI助手支持GPT4.0