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

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”.

評價

There are no reviews for this plugin.

貢獻者及開發者

“TC Comment Out” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 TC Comment Out 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

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.