[WordPress] 外掛分享: Raw HTML Snippets

首頁外掛目錄 › Raw HTML Snippets
2,000+
安裝啟用
★★★★
4.7/5 分(11 則評價)
962 天前
最後更新
問題解決
WordPress 2.6+ v2.0.4 上架:2011-05-10

內容簡介

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

[raw_html_snippet id=”my-snippet”]

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

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

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.4) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Raw HTML Snippets」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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!

延伸相關外掛

文章
Filter
Apply Filters
Mastodon