• Resolved Mati

    (@mattheus)


    Hello,

    First of all, thank you for this great plugin — it’s easy to use and works well with other plugins.

    I’ve enabled reCAPTCHA for the registration form on the WooCommerce “My Account” page, and it works perfectly there. However, on my site, I also have an account icon in the header which opens a popup login/register form. In this popup, the reCAPTCHA does not load, even though it’s essentially the same form.

    This makes me wonder whether bots could register through the popup without triggering the reCAPTCHA protection.

    My questions are:

    1. Can bots actually register via such popups if reCAPTCHA doesn’t load?
    2. Would it be recommended to load the reCAPTCHA scripts on all pages, just to ensure protection in dynamic popups — or is that unnecessary if bots don’t use them?

    Thank you in advance for your support!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @mattheus

    Bot may register via popup forms if you do not have reCAPTCHA on it. Our plugin adds scripts to WooCommerce and other pages where form is available. So it might not be working for the popup form you have in header.

    If you load the reCAPTCHA scripts on all pages, it will probably work on the popup form. Please give it a try and let us know if you need any assistance.

    Thank you.

    Thread Starter Mati

    (@mattheus)

    How do I make sure reCAPTCHA is loaded on every page from your plugin?

    All our scripts are enqueued inside aioc_enqueue_scripts(), so hook it into wp_enqueue_scripts to load it on every page. You can add following code in functions.php of the theme you are using.

    if ( function_exists( 'aioc_enqueue_scripts' ) ) {
    add_action( 'wp_enqueue_scripts', 'aioc_enqueue_scripts' );
    }
    Thread Starter Mati

    (@mattheus)

    thnx, first i try without load reCAPTCHA on every page. when i get spam mails i wil try it.

    i got dis messages in my debug log:
    [23-Jun-2025 17:01:38 UTC] PHP Deprecated: Creation of dynamic property ReCaptcha\ReCaptcha::$hostname is deprecated in /wp-content/plugins/all-in-one-captcha/vendor/google/recaptcha/src/ReCaptcha/ReCaptcha.php on line 216

    Hi @mattheus

    Thank you for letting us know about this. We are using slightly older version of the reCAPTCHA library to make it compatible with PHP 7.x.x. We will update it soon.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘reCAPTCHA not loading in popup registration form’ is closed to new replies.