[WordPress] 外掛分享: wpuntexturize

首頁外掛目錄 › wpuntexturize
WordPress 外掛 wpuntexturize 的封面圖片
900+
安裝啟用
★★★★
4.6/5 分(12 則評價)
343 天前
最後更新
問題解決
WordPress 5.5+ v2.3 上架:2009-05-27

內容簡介

預設情況下,WordPress會將單引號和雙引號轉換為彎曲的替代品。此外掛可防止此事發生,讓您可以欣賞單引號和雙引號的平直版本。如果您的內容本來就包含了彎曲的引號,則此外掛也可選擇將其轉換為平直的替代版本。

注意:儘管名稱可能有誤導性,但此外掛並非 WordPress 的 wptexturize() 函數的對立面。此外掛僅防止 WordPress 將單引號和雙引號的HTML實體代碼替換為彎曲替代品,而不會防止 wptexturize() 進行其他字符和字符串替換。請參閱常見問題集以了解由此外掛處理的過濾器的詳細資訊。

連結: 外掛首頁 | 外掛目錄頁面 | GitHub | 作者首頁

開發人員文件

開發人員文件可在 DEVELOPER-DOCS.md 中找到,該文件介紹了外掛提供的許多鉤子。為了提供概述,以下列出了這些鉤子。

c2c_wpuntexturize :以另一種安全方式調用 c2c_wpuntexturize() 的選擇方法,以便於外掛停用或刪除時,對此函數的呼叫不會導致您的網站出錯。這只適用於直接使用函數的情況,對於大多數使用者,這不是典型的用法。
wpuntexturize_filters :自訂要使用 wpuntexturize 过滤器过滤的内容。請參閱描述中的完整列表,其中列出了所有默認被過濾器篩選的過濾器。
c2c_wpuntexturize_replacements :自定義由此外掛處理的字符替換方式。
c2c_wpuntexturize_convert_curly_quotes :啟用現有彎曲引號轉換為其平直替代品的功能。

外掛標籤

開發者團隊

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

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

原文外掛簡介

By default, WordPress converts single and double quotation marks into their curly alternatives. This plugin prevents that from happening, so you can enjoy your quotation marks in their non-curly glory. If your content happens to already have curly quotation marks in it, then this plugin can optionally also convert them to their non-curly alternatives.
Note: Despite the unfortunately misleading name, this plugin is NOT the antithesis of WordPress’s wptexturize() function. This ONLY prevents WordPress from making HTML entity code substitutions of single and double quotation marks with their curly alternatives and does NOT prevent wptexturize() from making any other character and string substitutions. See the FAQ for details on the filters processed by the plugin.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage
Developer Documentation
Developer documentation can be found in DEVELOPER-DOCS.md. That documentation covers the numerous hooks provided by the plugin. Those hooks are listed below to provide an overview of what’s available.

c2c_wpuntexturize : An alternative approach to safely invoke c2c_wpuntexturize() in such a way that if the plugin were deactivated or deleted, then your calls to the function won’t cause errors in your site. This only applies if you use the function directly, which is not typical usage for most users.
wpuntexturize_filters : customize what filters to hook to be filtered with wpuntexturize. See the Description section for a complete list of all filters that are filtered by default.
c2c_wpuntexturize_replacements : Customize the character replacements handled by the plugin.
c2c_wpuntexturize_convert_curly_quotes : Enable conversion of preexisting curly quotes into their non-curly alternatives.

延伸相關外掛

文章
Filter
Mastodon