Viewing 2 replies - 1 through 2 (of 2 total)
  • I came here today literally to post about the same thing.

    Great plugin btw!!

    The problem we are seeing is it loads calls in header and actual JS code at page bottom on EVERY page of the site, not just the few pages that require login.

    Also for for example WooCommerce product pages, which can’t be cached anyway so you don’t want anything on there to slow them down further.

    Please update the plugin to also load ReCaptcha code only on the pages where it’s required, which are selected in plugin settings. ??

    Thanks!!

    I have the same issue.

    I think we could remove it from pages by hooking into wp_recaptcha_required or wp_recaptcha_do_scripts.

    I tried this on https://shoemania.in and reCaptcha script doesn’t seem to be loading on home page but by hooking into wp_recaptcha_required I think, it could be sped it up a bit.

    function restrict_recaptcha() {
    	if(is_home() || is_front_page()) {
    		return false;
    	}
    
    	return true;
    }
    add_filter('wp_recaptcha_do_scripts', 'restrict_recaptcha');

    Edit:
    Hooking into wp_recaptcha_required doesn’t seem to be working. wp_recaptcha_do_scripts works fine, I believe.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Loads Recaptcha on every page (even those without displaying recaptcha)’ is closed to new replies.