Hide reCAPTCHA on Non-Form Pages for Contact Form 7

Descrição

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.

Instalação

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

FAQ

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.

Avaliações

There are no reviews for this plugin.

Contribuidores e desenvolvedores

“Hide reCAPTCHA on Non-Form Pages for Contact Form 7” é um software com código aberto. As seguintes pessoas contribuíram para este plugin.

Contribuidores

Registro de alterações

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