[WordPress] 外掛分享: Hide reCAPTCHA Badge on Non-Form Pages for Contact Form 7

首頁 › 外掛目錄 › Hide reCAPTCHA Badge on Non-Form Pages for Contact Form 7
WordPress 外掛 Hide reCAPTCHA Badge on Non-Form Pages for Contact Form 7 的封面圖片
70+
安裝啟用
★★★★★
5/5 分(2 則評價)
5 天前
最後更新
—
問題解決
WordPress 6.7+ PHP 7.4+ v2.1.0 上架:2022-06-09

內容簡介

隱藏 reCAPTCHA 於所有頁面,除了有表單的頁面(例如聯絡頁面)。預設情況下,Contact Form 7 會在所有頁面上顯示 Google reCAPTCHA,包括首頁、文章和商店頁面。但我們只需要它出現在有表單的頁面,例如聯絡頁面。此外掛程式會搜尋具有表單簡碼的頁面並在這些頁面上顯示 reCAPTCHA,並在所有其他頁面上隱藏它。

相關套件

WordPress v3.9.2 及以上版本(已測試至 6.0)
PHP v5.6.0 及以上版本(已測試至 7.4)
Contact Form 7(已測試至 5.5.6.1)

授權

Hide reCAPTCHA on Non-Form Pages for Contact Form 7 依據 GPLv2 授權釋出,與 WordPress 相同。完整授權條款請參閱 LICENSE 檔案。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Hide reCAPTCHA Badge on Non-Form Pages for Contact Form 7」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Hide reCAPTCHA Badge on Non-Form Pages for Contact Form 7 loads Google reCAPTCHA v3 only on the pages that show a Contact Form 7 form. Every other page loses the badge and the Google scripts behind it.
Contact Form 7 loads reCAPTCHA v3 on your whole site once you connect it, so the badge sits on pages that have no form. This plugin removes it there and leaves your forms protected.
What you get

The reCAPTCHA badge disappears from pages without a form
Fewer third-party scripts on those pages, so they load faster
Forms keep full reCAPTCHA spam protection
Forms are found wherever they are: content, footer, sidebar, widgets, page builders and popups
Nothing to configure

How it works
The plugin watches whether Contact Form 7 puts a form on the page. If it does, reCAPTCHA loads as usual. If it does not, the scripts are never printed, so there is no badge to hide with CSS.
Source code and issues: GitHub

延伸相關外掛

文章
Filter
Mastodon