Linux 软件免费装
Banner图

Selective reCAPTCHA Loader for CF7

开发者 yasuhikofujiwara
netservice
更新时间 2025年9月18日 07:57
PHP版本: 7.4 及以上
WordPress版本: 6.8
版权: GPLv2 or later
版权网址: 版权信息

标签

performance recaptcha forms optimization contact-form-7

下载

0.2

详情介绍:

Selective reCAPTCHA Loader for CF7 is a performance optimization plugin that intelligently controls when and where Google reCAPTCHA assets are loaded for Contact Form 7 forms. Instead of loading reCAPTCHA on every page, this plugin provides two modes to optimize your site's performance. Key Features 🚀 Two Loading Modes: How It Works The plugin hooks into WordPress's script enqueuing system with a priority of 120, analyzing each page to determine if Contact Form 7 forms are present. Based on your selected mode and detection results, it either allows or prevents reCAPTCHA assets from loading. Caching Considerations: Developer Features Filters:

安装:

  1. Upload the plugin files to /wp-content/plugins/selective-recaptcha-loader/
  2. Activate the plugin through the 'Plugins' screen in WordPress
  3. Go to Settings → Selective reCAPTCHA to configure the plugin
  4. Choose your preferred mode (Selective is recommended for most sites)

升级注意事项:

0.2 Simplified to Global/Selective modes with whitelist support. Removed Auto mode, metabox, and badge features for better usability. 0.01 Initial release of Selective reCAPTCHA Loader for CF7.

常见问题:

Does this plugin work without Contact Form 7?

No, this plugin requires Contact Form 7 to be active. It will gracefully deactivate functionality if CF7 is not detected.

Can I force reCAPTCHA to load on specific pages?

Yes! Add pages to the whitelist in settings using:

  • Post ID (e.g., 123)
  • Page slug (e.g., contact)
  • Regular expression (e.g., /^https:\/\/example.com\/custom/) You can also use the selerelo_is_form_page filter for custom logic.

Is this plugin compatible with caching plugins?

Yes, the plugin is designed to work with caching plugins. The detection logic runs before caching occurs and uses WordPress transients for performance.

更新日志:

Unreleased 0.01 - 2025-09-02