[WordPress] 外掛分享: Remove WordPress to WordPress filter

前言介紹

  • 這款 WordPress 外掛「Remove WordPress to WordPress filter」是 2010-05-29 上架。
  • 目前有 40 個安裝啟用數。
  • 上一次更新是 2021-04-09,距離現在已有 1485 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0 以上版本才可以安裝。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

tomthewebmaster |

外掛標籤

filter | filters | WordPress |

內容簡介

在 WordPress 3.0 及之後的版本中,預設篩濾器會將文章、標題和評論中所有的「WordPress」(注意小寫的「p」)更改為「WordPress」。 由於各種原因,例如保留現有文章和評論中的拼寫,部落格擁有者可能想要關閉這個篩濾器。這就是這個外掛的功能。

只需將外掛檔案上傳到 WordPress 外掛資料夾,在部落格的外掛管理頁面啟用它,就完成了!

技術細節

此外掛旨在禁用 capital_P_dangit 函數,這是 WordPress 的一個功能,禁止在部落格中使用「WordPress」一詞。

此篩濾器定義在 WordPress 核心程式碼的 wp-includes/default-filters.php 中,應用在 wp-includes/formatting.php 中。

這個外掛使用 remove_filter 函數撤銷 wp-includes/formatting.php 中應用的 add_filter 函數。在 1.0 和 1.1 版本中,該函數被移除了某些優先級。自 1.2 版本以來,此外掛刪除了所有可能的優先級的篩濾器。感謝Matt Robinson 建議此方法並提供外掛中使用的程式碼

有關此函數在 WordPress 中的應用程序的更多信息,以下是有關此函數的相關更改集:

針對 WordPress 3.0 的更改
針對 WordPress 3.0.1 的更改
針對 WordPress 3.1 的更改
針對 WordPress 3.5 的更改
針對 WordPress 3.7 的更改
針對 WordPress 3.8 的更改

原文外掛簡介

In WordPress 3.0 and later, a default filter changes all instances of “WordPress” (note the small “p”) in posts, titles, and comments to “WordPress”. For various reasons, such as preserving spelling in existing posts and comments, a blog owner may want to turn this filter off. That is what this plugin does.
Simply upload the plugin files to your WordPress plugins folder, activate it on your blog’s Plugin administration page, and you are set!
Technical Details
This plugin seeks to disable the capital_P_dangit function, which is the WordPress function that disallows “WordPress” to be used on blogs.
The filter is defined in wp-includes/default-filters.php and is applied in wp-includes/formatting.php of the core WordPress code.
The remove_filter function is used in this plugin to undo the add_filter function applied in wp-includes/formatting.php. In versions 1.0 and 1.1 of this plugin, the function was removed for certain priority levels. As of version 1.2, this plugin removes the filter for all possible priority levels. Thanks to Matt Robinson for suggesting this method and providing code that is used in the plugin.
For more information regarding how this function is applied in WordPress, the following are the relevant changesets to the core WordPress code regarding this function:

Changes made for WordPress 3.0
Changes made for WordPress 3.0.1
Changes made for WordPress 3.1
Changes made for WordPress 3.5
Changes made for WordPress 3.7
Changes made for WordPress 3.8

各版本下載點

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

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


1.0 | 1.1 | 1.2 | 1.3 |

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

  • WP Favicon Remover 》WP Favicon Remover 外掛功能是移除自 WordPress 5.4 起的預設 Favicon。如果在外掛安裝後 Favicon 仍未更改,請清除瀏覽器快取。如果您使用的是透過主題客製...。
  • Embed PDF 》此外掛可使用 Google Docs Viewer 內嵌 PDF 檔案, 只需在獨立一行或使用內嵌標籤 http://example.com/file.pdf 中包含 PDF 文件的 URL,本外...。
  • EnvoThemes Demo Import 》使用一鍵操作,即可匯入 EnvoThemes 官方主題的示範內容、小工具和主題設定。, 支援的主題, , Envo Shopper, Envo Marketplace, Envo Online Store, Envo Sho...。
  • SHK Hide Title 》一個 WordPress 外掛,可以禁用頁面標題。您可以自行使用 header class,讓它在所有佈景主題中運作。。
  • Blogger To WordPress 》如果您從Blogger.com (blogspot.com)導入了文章,可能會將訪客從您的部落格重新導向到新WordPress部落格的主頁。這是不對的,因為當使用者在未預期的情況下降...。
  • Favicon XT-Manager 》Favicon XT-Manager WordPress 外掛 是一個易於使用的 WordPress 外掛,用於向 WordPress 網站添加 favicon。 favicon 是瀏覽器在瀏覽器標籤旁邊或在地址欄旁...。
  • PRyC WP: Add custom content to post and page (top/bottom) 》在文章或頁面上添加自訂內容(頂部/底部)。您可以使用文本、HTML、短代碼和JavaScript。簡單而有效... 。
  • Pk Favicon Manager 》Pk Favicon Manager WordPress plugin 讓你在你的 WordPress 網站上加入一個 favicon 圖像。Favicon 是顯示在瀏覽器地址欄中的小圖示或標誌。透過這個外掛,...。
  • Hide Price Until Login 》在使用者未登入或輸入密碼前,隱藏商店和產品詳細頁面的產品價格。, 主要功能, , 只有在輸入正確密碼後才會顯示產品的價格, 隱藏特定使用者的產品價格, 只有...。
  • Hide Categories On Shop Page 》這個免費的 WooCommerce 外掛允許您在商店的主頁面上隱藏類別。, 為此,您需要在 WooCommerce > 設置 > 產品選項標籤部分中使用“,”分隔的方式保存類別。, 為...。
  • azurecurve Toggle Show/Hide 》切換以顯示/隱藏內容(允許自定義標題)。, 使用基本格式 [toggle]content[/toggle] 以使用切換。, 使用 title 參數設置標題:[toggle title=’點擊以顯...。
  • Vast Demo Import 》使用一鍵功能匯入 Vast 主題的示範內容、小工具和自訂外觀設定。, 版權, Vast Demo Import WordPress 外掛,版權所有 2018 WordPress.org, Vast Demo Import ...。
  • PRyC WP: TinyMCE more buttons 》為預設的 TinyMCE 編輯器新增 (解鎖) 更多按鈕 (第三列/行):, , 選擇字型, 選擇字型大小, 選擇樣式, 文字背景色, 水平對齊, 底線, 新文件 (清空文件), 剪下,...。
  • Unlock Exclusive Discord Access: Introducing the Free PMPro-Discord Addon — Elevate Your Community Engagement! 》這個 PMPRO Discord 外掛可以讓 PaidMembershipPro 的會員連結到您的 Discord 線上社群,根據他們的會員等級,分配給他們對應的伺服器角色。, 非常簡單易操作...。
  • FLOWFACT WP Connector 》With the FLOWFACT WP Connector, you have the option to integrate different areas of your FLOWFACT into your website., Overview, The FLOWFACT WP Con...。

文章
Filter
Apply Filters
Mastodon