• Resolved hasangee

    (@hasangee)


    Hello,

    Plugin works great but it seems to conflict with CF7. If I add a recaptcha to a contact form, it just wont show.

    It will only show if I disable WordPress ReCaptcha Integration. Any work around? I really need both plugins to be active..

    Cheers,
    Hasan

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter hasangee

    (@hasangee)

    Hello,

    I found a fix!

    Add this to your functions.php :

    function wp_recaptcha_cf7_fix($default) {
    global $post;
    if(is_a($post, ‘WP_Post’) && has_shortcode($post->post_content, ‘contact-form-7’)) {
    return false;
    }
    return $default;
    }
    add_filter(‘wp_recaptcha_do_scripts’, ‘wp_recaptcha_cf7_fix’);
    add_filter(‘wp_recaptcha_required’, ‘wp_recaptcha_cf7_fix’);

    Hi,

    I tried this fix however it still doesn’t show the CF7 reCaptcha when this plugins reCaptcha is being displayed on the same page.

    Any suggestions?

    Thank you 🙂

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

The topic ‘CF7 conflict’ is closed to new replies.