FIX – Protected by Recaptcha Showing on all pages
-
So the latest update now shows the Google Recaptcha on all pages.
After I did a print of enqueued scripts, I found ‘wpcf7-recaptcha’ is also on the list, so we simply disable this as well
the fix under functions.php :
function disable_google_captcha_except_contact() { if (!is_page(array( 'contact' )) ) { wp_dequeue_script('wpcf7-recaptcha'); wp_dequeue_script('google-recaptcha'); } } add_action('wp_enqueue_scripts', 'disable_google_captcha_except_contact');
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘FIX – Protected by Recaptcha Showing on all pages’ is closed to new replies.