Title: TC Comment Out
Author: Tracy Rotton
Published: <strong>2011 年 4 月 25 日</strong>
Last modified: 2020 年 6 月 14 日

---

搜尋外掛

![](https://ps.w.org/tc-comment-out/assets/banner-772x250.png?rev=589463)

這個外掛**並未在最新的 3 個 WordPress 主要版本上進行測試**。開發者可能不再對這個
外掛進行維護或提供技術支援，並可能會與更新版本的 WordPress 產生使用上的相容性問題。

![](https://s.w.org/plugins/geopattern-icon/tc-comment-out_eaeaea.svg)

# TC Comment Out

 由 [Tracy Rotton](https://profiles.wordpress.org/taupecat/) 開發

[下載](https://downloads.wordpress.org/plugin/tc-comment-out.2.0.0.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/tc-comment-out/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/tc-comment-out/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/tc-comment-out/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/tc-comment-out/#developers)

 [技術支援](https://wordpress.org/support/plugin/tc-comment-out/)

## 外掛說明

Easily comment out page and post content using a shortcode. Content is commented
out using HTML comment syntax, keeping the content available in the “View Source”
window of your web browser.

Simply place the opening shortcode [comment] at the beginning of the text you wish
to comment out, and the closing shortcode [/comment] at the end.

If you wish to hide the content entirely from view (so that it is _not_ visible 
in the browser source), set the optional type attribute to “hidden”. Setting the
type attribute to “html” will produce the default behavior, but is not required.

    ```
    [comment]This text will be commented out with HTML comments.[/comment]

    [comment type="hidden"]This text will not even be sent to the browser.[/comment]
    ```

## 安裝方式

 1. Place the tc-comment-out directory inside your plugins directory.
 2. Navigate to the Plugins section of the Dashboard and click “Activate”.

## 使用者評論

這個外掛目前沒有任何使用者評論。

## 參與者及開發者

以下人員參與了開源軟體〈TC Comment Out〉的開發相關工作。

參與者

 *   [ Tracy Rotton ](https://profiles.wordpress.org/taupecat/)

[將〈TC Comment Out〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/tc-comment-out)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/tc-comment-out/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/tc-comment-out/)，或透過 [RSS](https://plugins.trac.wordpress.org/log/tc-comment-out/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/tc-comment-out/)。

## 變更記錄

#### Version 2.0

 * Changed license to MIT.
 * Fixed incompatibilities with WordPress 5.*.
 * Rewrote for cleaner code that meet WordPress Coding Standards (version 2.3.0)

#### Version 1.2

 * Implemented the “type” attribute allowing users to use HTML comments to hide 
   their content (the default) or to strip it out altogether so that the commented
   content is NOT viewable when using the browser’s “View Source” option.
 * Added GPLv2 license to package.

#### Version 1.1

 * Fixed a bug that would break the SGML commenting schema if it encountered a URL
   containing two dashes in a row. WordPress filters double-dashes in content, but
   not when they occur in a URL.

#### Version 1.0

 * Initial release.

## 中繼資料

 *  版本 **2.0.0**
 *  最後更新 **6 年前**
 *  啟用安裝數 **70+**
 *  WordPress 版本需求 ** 2.5 或更新版本 **
 *  已測試相容的 WordPress 版本 **5.4.23**
 *  PHP 版本需求 ** 5.3.0 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/tc-comment-out/)
 * 標籤:
 * [comment-out](https://tw.wordpress.org/plugins/tags/comment-out/)[hide content](https://tw.wordpress.org/plugins/tags/hide-content/)
   [shortcode](https://tw.wordpress.org/plugins/tags/shortcode/)
 *  [進階檢視](https://tw.wordpress.org/plugins/tc-comment-out/advanced/)

## 評分

 4.5 星，滿分為 5 星

 *  [  1 個 5 星使用者評論     ](https://wordpress.org/support/plugin/tc-comment-out/reviews/?filter=5)
 *  [  1 個 4 星使用者評論     ](https://wordpress.org/support/plugin/tc-comment-out/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/tc-comment-out/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/tc-comment-out/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/tc-comment-out/reviews/?filter=1)

[撰寫評分](https://wordpress.org/support/plugin/tc-comment-out/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/tc-comment-out/reviews/)

## 參與者

 *   [ Tracy Rotton ](https://profiles.wordpress.org/taupecat/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/tc-comment-out/)