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.

安装

  1. Install from WordPress Plugin Directory or upload plugin files
  2. Activate the plugin
  3. Done! reCAPTCHA will only load on pages with forms

常见问题

Does this work with the latest Contact Form 7?

Yes, tested up to Contact Form 7 6.1.3 and WordPress 6.8.

Do I need to configure anything?

No. The plugin works automatically after activation.

Will this affect my form submissions?

No. Forms with reCAPTCHA will work normally. The plugin only removes scripts from non-form pages.

Does it support custom post types?

Yes. It checks all singular pages/posts for CF7 shortcodes.

评价

阅读所有2条评价

贡献者及开发者

「Hide reCAPTCHA on Non-Form Pages for Contact Form 7」是开源软件。 以下人员对此插件做出了贡献。

贡献者

更新日志

2.0.0

  • Complete rewrite with modern PHP 8+ practices
  • Improved performance with optimized detection
  • Better code structure with singleton pattern
  • Added CF7 dependency check
  • Updated for WordPress 6.8 and Contact Form 7 6.1.3
  • Requires PHP 7.4+, WordPress 6.7+, Contact Form 7 5.1+

1.0.2

  • Removed CSS to hide grecaptcha-badge

1.0.1

  • Bug fixes

1.0.0

  • Initial release