Title: Hide Comments Feature
Author: Vitor Carvalho
Published: <strong>2010 年 11 月 29 日</strong>
Last modified: 2012 年 10 月 24 日

---

搜索插件

![](https://ps.w.org/hide-comments-feature/assets/banner-772x250.png?rev=610336)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/hide-comments-feature_ffffff.svg)

# Hide Comments Feature

 作者：[Vitor Carvalho](https://profiles.wordpress.org/lightningspirit/)

[下载](https://downloads.wordpress.org/plugin/hide-comments-feature.0.4.zip)

 * [详情](https://cn.wordpress.org/plugins/hide-comments-feature/#description)
 * [评价](https://cn.wordpress.org/plugins/hide-comments-feature/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/hide-comments-feature/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/hide-comments-feature/#developers)

 [支持](https://wordpress.org/support/plugin/hide-comments-feature/)

## 描述

For those who do not need to have the Comments feature in WordPress (there are a
lot of reasons), this plugin removes any trace of that existence in both wp-admin
and front-end.
 Your theme must rely properly on the WordPress API for the front-
end support. The tag must be present. Completely done through techniques based on
both action hooks and CSS.

Doesn’t requires any configuration, just install and any trace of Comments will 
disappear.

NOTE: This does NOT play with the core, so you are able to update both plugins and
WordPress without any trouble.

#### Provided Custom Hooks

This plugin provides 4 custom hooks you may play if you need more substance in your
theme.

    ```
    add_action( 'hide_comments_post_types', 'my_hide_comments_post_types' ); to change the list of post types to be processed by the plugin. Comments will be removed from all listed post types.
    add_action( 'hide_comments_css', 'my_hide_comments_css' ); to add arbitrary CSS to hide comment's stuff from your theme.
    add_action( 'hide_comments_template_comments_path', 'my_hide_comments_template_comments_path' ); the default path is the empty file template-comments.php located in the same dir of this plugin. Just modify the path to your own file if you want to return anything else.
    add_action( 'hide_comments_dashboard_right_now', 'my_hide_comments_dashboard_right_now' ); if true is returned, the discussion table of dashboard right now widget will be hidden. False otherwise. Defaults to true.
    ```

The use of these hooks are recommended, thus, if the plugin gets deactivated, those
hooks will not be called anymore and then you get things consistent and clean.

Do you want to translate it to your language? Just reply to the «Translations» topic
in the forum.

## 屏幕截图

 * [[
 * There is no Comments menu link!
 * [[
 * The comments template disappeared (magically) from the Twenty Twelve theme.

## 安装

 1. Upload `hide-comments-feature` folder to the `/wp-content/plugins/` directory
 2. 通过WordPress的“插件”菜单激活插件
 3. No more configuration required.

## 常见问题

  Installation Instructions

 1. Upload `hide-comments-feature` folder to the `/wp-content/plugins/` directory
 2. 通过WordPress的“插件”菜单激活插件
 3. No more configuration required.

  Will this affect my WordPress Instalation?

No. This won’t play with the core! In other words, the feature still exists there
but it is hidden by the plugin.

  And about my theme? Comments still there…

That’s because your theme either is too old or it doesn’t rely on the newest WordPress
API. So you have to upgrade it, find a new one or, play with CSS to hide some HTML
parts of the theme.
 Example of code to go into functions.php:

 /* Your CSS here */

Though, the main purpose of this plugin is to help web designers and developers 
creating WordPress sites they can ensure that their users will no longer see mentioned
the word “Comment”.

## 评价

此插件暂无评价。

## 贡献者及开发者

「Hide Comments Feature」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Vitor Carvalho ](https://profiles.wordpress.org/lightningspirit/)

[帮助将「Hide Comments Feature」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/hide-comments-feature)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/hide-comments-feature/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/hide-comments-feature/)，或通过[RSS](https://plugins.trac.wordpress.org/log/hide-comments-feature/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/hide-comments-feature/)。

## 更新日志

#### 0.4

 * Huge update! Everything is now handled consistently. It is expected to be 3.4
   and 3.5 compatible.
 * Optimal support for the new Twenty Twelve theme.
 * Added 4 custom action hooks (see )
 * Added translation for Portuguese

#### 0.2

 * Bugfix: comment icon in menu shouldn’t appear in instances prior than 3.0.3

#### 0.1

 * Initial Release
 * Good support from FF3/4 and IE7

## 额外信息

 *  版本 **0.4**
 *  最后更新：**8 年前**
 *  活跃安装数量 **1,000+**
 *  WordPress 版本 ** 3.4 或更高版本 **
 *  已测试的最高版本为 **3.5.2**
 *  语言
 * [English (US)](https://wordpress.org/plugins/hide-comments-feature/)
 * 标签
 * [comment](https://cn.wordpress.org/plugins/tags/comment/)[comments](https://cn.wordpress.org/plugins/tags/comments/)
   [hide](https://cn.wordpress.org/plugins/tags/hide/)[remove](https://cn.wordpress.org/plugins/tags/remove/)
 *  [高级视图](https://cn.wordpress.org/plugins/hide-comments-feature/advanced/)

## 评级

 4.5 星（最高 5 星）。

 *  [  5 条 5 星评价     ](https://wordpress.org/support/plugin/hide-comments-feature/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/hide-comments-feature/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/hide-comments-feature/reviews/?filter=3)
 *  [  1 条 2 星评价     ](https://wordpress.org/support/plugin/hide-comments-feature/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/hide-comments-feature/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/hide-comments-feature/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/hide-comments-feature/reviews/)

## 贡献者

 *   [ Vitor Carvalho ](https://profiles.wordpress.org/lightningspirit/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/hide-comments-feature/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://vcarvalho.com/donate/)