[WordPress] 外掛分享: Raw HTML Snippets

前言介紹

  • 這款 WordPress 外掛「Raw HTML Snippets」是 2011-05-10 上架。
  • 目前有 3000 個安裝啟用數。
  • 上一次更新是 2023-07-31,距離現在已有 642 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 2.6 以上版本才可以安裝。
  • 有 11 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

theandystratton |

外掛標籤

html | raw html | embed html | autoformatting |

內容簡介

建立一個原始 HTML 片段的函式庫,您可以使用簡短代碼輕鬆地將它們插入到任何頁面/文章內容中:

[raw_html_snippet id=”my-snippet”]

片段包含一個獨特的 ID(例如“my-snippet”)和原始 HTML 代碼。這個外掛被編寫為停止使用覆蓋 WordPress 核心內容篩選器並影響簡短代碼輸出的方式。

這個外掛不會污染任何內容或其他簡短代碼的輸出。如果您刪除了一個片段,任何帶有該片段 ID 的現有簡短代碼都會輸出一個空字符串。

請注意,這允許您輸出原始 HTML。使用時請自行承擔風險。它不會檢查惡意的HTML/CSS/Javascript!

原文外掛簡介

Create a library of raw HTML snippets that you can easily insert into any page/post content using a shortcode:
[raw_html_snippet id=”my-snippet”]
Snippets consist of a unique ID (e.g. “my-snippet”) and raw HTML code. This plugin was written to stop using hacks that override WordPress’ core content filters and affect shortcode output.
This plugin will NOT taint your content or the output of other shortcodes. If you delete a snippet, any existing shortcodes with that snipet’s ID will output an empty string.
Remember, this allows you to output raw HTML. Use at your own risk. It will not check for malicious HTML/CSS/Javascript!

各版本下載點

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

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


2.0 | 2.0.1 | 2.0.2 | 2.0.3 |

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

  • PS Disable Auto Formatting 》如果你受夠了 WordPress 自動格式化的習慣,可以試試這個外掛。, PS Disable Auto Formatting 停止 WordPress (wpautop) 的自動格式化,並修改由可視化編輯器...。
  • Killit 》Killit自動禁用WordPress的所有自動格式化功能。類似於流行的RawHTML插件,但會自動應用於所有文章和頁面。可以選擇從the_content,the_excerpt和/或comment_...。

文章
Filter
Apply Filters
Mastodon