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

首頁外掛目錄 › Hide reCAPTCHA on Non-Form Pages for Contact Form 7
10+
安裝啟用
★★★★★
5/5 分(2 則評價)
133 天前
最後更新
問題解決
WordPress 6.7+ PHP 7.4+ v2.0.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.0.0) 或搜尋安裝

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

原文外掛簡介

By default, Contact Form 7 loads Google reCAPTCHA scripts on every page of your site, even pages without forms. This plugin intelligently detects pages with Contact Form 7 shortcodes and only loads reCAPTCHA where needed.
Benefits:
✅ Improved page load speed
✅ Reduced HTTP requests
✅ Better user experience (no badge on non-form pages)
✅ Automatic detection – no configuration needed
✅ Works with all CF7 versions
How it works:
The plugin checks each page for Contact Form 7 shortcodes. If no form is found, it prevents reCAPTCHA scripts from loading, keeping your site fast and clean.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon