[WordPress] 外掛分享: Disable Search

WordPress 外掛 Disable Search 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Disable Search」是 2009-06-10 上架。
  • 目前有 40000 個安裝啟用數。
  • 上一次更新是 2025-04-14,距離現在已有 20 天。
  • 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
  • 有 15 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

coffee2code |

外掛標籤

search | disable | coffee2code |

內容簡介

此外掛可防止 WordPress 處理和允許任何來自網站前端的搜尋請求。具體來說,此外掛:

若主題使用標準的 get_search_form() 函式來顯示搜尋表單,則無法顯示搜尋表單。
若主題使用 searchform.php 模板,則無法顯示搜尋表單。
當前端顯示管理工具欄時,搜尋項目會被隱藏。
停用搜尋小工具。

從可用小工具列表中移除「搜尋」小工具。
停用任何正在使用的搜尋小工具,例如在側邊欄中的小工具(它們會被隱藏,而不是被刪除;若停用此外掛,它們將重新顯示在其原先位置)

停用搜尋區塊。

從可用區塊列表中移除「搜尋」區塊。
停用任何正在使用的區塊,例如在文章內或作為小工具中的區塊(它們會被停用,而不是被刪除;若停用此外掛,且相關佔位區塊未被刪除,它們將重新顯示)

即使沒有搜尋表單,此外掛也可防止訪客使用 GET 或 POST 請求直接或手動進行搜尋。
若有任何嘗試進行搜尋,將會收到 404 文件未找到的回應,由現有的 404.php 模板呈現。
停用由 Yoast SEO 外掛產生的 SEO schema 的 SearchAction 輸出。

此外掛僅影響網站前端的搜尋,並不會停用網站管理區的搜尋。

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

原文外掛簡介

This plugin prevents WordPress from allowing and handling any search requests from the front-end of the site. Specifically, this plugin:

Prevents the search form from appearing if the theme uses the standard get_search_form() function to display the search form.
Prevents the search form from appearing if the theme uses a searchform.php template
Prevents the search item from appearing in the admin tool bar when shown on the front-end.
Disables the search widget.

Removes the Search widget from the list of available widgets
Deactivates any search widgets currently in use in any sidebars (they are hidden, not deleted; they’ll reappear in their original locations if this plugin gets deactivated)

Disables the search block.

Removes the Search block from the list of available blocks
Deactivates any search blocks currently in use, such as in posts or as a widget (they are disabled, not deleted; they’ll reappear if this plugin gets deactivated and the associated placeholder block doesn’t get deleted)

With or without a search form, the plugin prevents any direct or manual requests by visitors, via either GET or POST requests, from actually returning any search results.
Submitted attempts at a search will be given a 404 File Not Found response, rendered by your site’s 404.php template, if present.
Disables output of SearchAction in SEO schema by the Yoast SEO plugin.

The plugin only affects search on the front-end of the site. It does not disable searching in the admin section of the site.
Links: Plugin Homepage | Plugin Directory Page | GitHub | Author Homepage

各版本下載點

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

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


1.0 | 1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7 | 1.8 | 2.0 | 2.1 | 1.1.1 | 1.2.1 | 1.4.1 | 1.4.2 | 1.5.1 | 1.6.1 | 1.7.1 | 1.7.2 | 1.8.1 | 1.8.2 | 1.8.3 | 2.0.1 | 2.1.1 | trunk |

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

  • Classic Widgets 》Classic Widgets 是由 WordPress 團隊維護的官方外掛,能夠恢復先前(即「經典」)的 WordPress widgets 設定畫面。該外掛將於 2024 年或必要時保持支援和維...。
  • Disable Comments 》Disable Comments Plugin 是一個供管理員完全關閉網站評論功能的工具。我們的外掛程式可以全域性地關閉所有文章、頁面和附件的評論功能,移除所有相關的功能...。
  • Disable Admin Notices individually 》您是否有遇到某個外掛提供您更新高級版、收集技術數據,並顯示許多令人煩惱的通知的情況?您不斷地關閉這些通知,但它們總是重新出現,干擾您在WordPress上的...。
  • Disable Emojis (GDPR friendly) 》這個外掛可以禁用 WordPress 的新表情符號功能,符合 GDPR。, 注意:表情符號仍將正常工作,而內建支援表情符號的瀏覽器中,表情符號也將正常顯示。這個外掛...。
  • Disable Feeds 》這個外掛可以禁用你的網站所提供的所有RSS/Atom/RDF格式,若你使用 WordPress 純粹作為內容管理系統(而非部落格),這將非常有用。所有對於這些格式的需求都...。
  • Disable auto-update Email Notifications 》自 WordPress 5.5 起,若您已啟用外掛或佈景主題自動更新功能,當外掛或佈景主題自動更新成功或失敗時,您將會收到一封電子郵件通知。, 如果你管理多個網站,...。
  • Disable WP REST API 》這個外掛只有一個功能:禁用沒有登入 WordPress 的訪客使用 WP REST API。不需要任何設定。, 這個外掛只有 22 行短小的程式碼(少於 2KB)。因此它非常輕量、...。
  • Disable WP Sitemaps 》, 做一件事:禁用 WP 網站地圖自動產生功能。, , 啟用此外掛,即可停用自動生成的 WP 網站地圖 (在 WordPress v5.5 中新增)。, 功能:, , 輕量 - 只有一行程...。
  • Disable WordPress Update Notifications and auto-update Email Notifications 》首頁 | 文件 | 支援, 本外掛程式可完全停用 WordPress 根據您的外掛程式設定所顯示 Plugins、佈景主題和 WordPress 核心更新通知。此外,它還會停用自動更新...。
  • Disable Media Pages 》這個 WordPress 外掛完全停用「附件」頁面。, 預設情況下,WordPress 會為每個附件建立一個頁面。這可能會有兩個不利因素:, 搜尋引擎優化, 附件頁面除了一張...。
  • Disable Everything 》隨著時間流逝,WordPress 及一些最受歡迎的外掛越來越膨脹,帶有許多不必要的功能,這款外掛就是為了解決它而誕生!, 它將禁用所有不必要的 WordPress 功能,...。
  • Disable Author Archives 》這是一個簡單輕量的 WordPress 外掛,可以完全停用作者存檔/頁面(無論相應的作者是否存在),並使網頁伺服器返回404狀態碼('未找到')。相關連結也將禁用或...。
  • Disable Media Sizes 》, 輕鬆停用任何多餘的圖片尺寸, , 此外掛程式提供選項來停用 WordPress 建立的額外圖像尺寸。, 選項包括, , 停用縮略圖尺寸, 停用中型尺寸, 停用大型尺寸, 停...。
  • Disable Generate Thumbnails 》縮略圖, , 縮圖, 中大小圖, 大圖, 1536×1536, 2048×2048, 由主題產生, 由外掛產生, , 功能, , 大圖閾值, Exif 自動旋轉, 。
  • WPS Notice Center 》中文, WPS Notice Center 可以隱藏所有的管理提示,並將它們組合成一個可展開的單個提示,讓您完全享受 WordPress 介面而不受視覺污染。, 我們的所有擴充功能...。

文章
Filter
Apply Filters
Mastodon