[WordPress] 外掛分享: TC Comment Out

WordPress 外掛 TC Comment Out 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「TC Comment Out」是 2011-04-24 上架。
  • 目前有 80 個安裝啟用數。
  • 上一次更新是 2020-06-14,距離現在已有 1785 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.5 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.3.0 以上。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

taupecat |

外掛標籤

shortcode | comment-out | hide content |

內容簡介

這個外掛讓你可以使用簡短的代碼輕易地將網頁或文章中的內容註解掉。它會使用 HTML 註解語法,讓內容在瀏覽器的「檢視原始碼」視窗中仍然可見。

只需要在你要註解的文字前面放上開始代碼 [comment],在結尾處放上結束代碼 [/comment]。

如果你希望完全隱藏內容(在瀏覽器原始碼中不可見),可以將可選的 type 屬性設為「hidden」。預設行為是將 type 屬性設為「html」,但並非必要。

[comment]這段文字將被以 HTML 註解的形式隱藏起來。[/comment]

[comment type="hidden"]這段文字甚至不會被傳送到瀏覽器中。[/comment]

原文外掛簡介

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]

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「TC Comment Out」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.2 | 2.0.0 | trunk |

延伸相關外掛(你可能也想知道)

  • Wrapping ShortCode 》您是否正在使用短代碼?, WordPress 的預設區塊編輯器中也有標準的短代碼區塊,但需寫程式碼才能使用。, 此外,您無法將其他區塊置於短代碼之中,因此必須撰...。

文章
Filter
Apply Filters
Mastodon