Contact form 7 form issue


Home Forums Advanced noCaptcha & invisible Captcha PRO Contact form 7 form issue

This topic is: Resolved
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #37864
    Stelios Nikolaou
    Participant

    Hello,
    There is a problem with contact form 7. When I have the option Hide Captcha for logged in users? then the form is not working when send there is a message that a field is necessary to complete. And when I remove the shortcode of no captcha then it is working.
    So I guess that the system keeps searching for an answer from google captcha while it shouldn’t because it is not there.
    For users that are not logged in the form and captcha works fine.
    Please advise.
    Thank you

    #37889
    shamim
    Keymaster

    Please add following code in your theme’s (child theme’s if you are using) functions.php

    add_filter( 'wpcf7_verify_nonce', '__return_true' );
    

    Let me know.

    #37897
    Stelios Nikolaou
    Participant

    Hi Shamim,
    Now it’s working for those that are logged in and it doesn’t work for those that are not logged it. It doesn’t send the message for none logged it, users, without any message

    #37908
    shamim
    Keymaster

    Hi again,
    You can also add following code in addition to previous code

    add_filter( 'wpcf7_spam', '__return_false' );
    
    #37925
    Stelios Nikolaou
    Participant

    Hi now is working but it shouldn’t be fixed in the core of the plugin?

    #37928
    shamim
    Keymaster

    Glad it worked. CF7 changes too much and sometimes it is impossible to get the code right for them. This is one of the case.
    I worked with that plugin developer and solved this issue about 2 years ago. Now that code is again changed. See https://wordpress.org/support/topic/is_user_logged_in-always-return-false-inside-wpcf7_before_send_mail/

    I will try to solve the issue again in the core.

    #37930
    Stelios Nikolaou
    Participant

    Ok i understand i will keep the code also in the child theme.

    Thank you!

Viewing 7 posts - 1 through 7 (of 7 total)

You need to purchase ‘Advanced noCaptcha & invisible Captcha PRO’ to create topic in this support forum.

If you already purchased ‘Advanced noCaptcha & invisible Captcha PRO’ please LOGIN.