Support » Plugin: Contact Form 7 Database Addon - CFDB7 » Omit off g-recaptcha-response data in CSV export

  • Resolved aaron1728

    (@aaron1728)


    I get all kinds of junk after the last data field, e.g.
    “g-recaptcha-response”;s:484:”03AJpayVFlkCG340wRoIW8bzlUhH1XNi5WQofsriAjNrwqEwKANlyMgO-St9p9TlEd1PoNkD–eFJii0rAoWGY3uvvE8IGCiC-effhuqdEEIB8uSH3vdcWkIPrZ4hInc7ffHtKXgnBKdHDyH1Dkv8DrykTFcfXh2vrnGrBxqAJICo6iYSsb-uI6pUc4_-6sa3haJs-8fpD0SgHOtsigOzmpNT2u2Txio-iKXmNrapgM1Y6L_3-dNnenQpr1mcJ2cgWb4Sya_-wxl6tXdSKqhrKg_EFiZBQvIL0OdmNzP1Xco55RVxnGw9gxfFYGQGm4vdU6HbE_eBVOU4jWPhZaRT0d1HqeCVAY3plpq4BNNRQQ9DvLLCywHeBH-7fhlchVL_Xd2Bz7wn_H8zq5sKEU7nQ7gpDzu1osUL9ygcV5YITUSWZRlSwf5YxrX7pK2Ypj7QTJHWInyuYunjv0h50OBTvaqYVPOd3VldlBA”

    Is there any way to turn this off?

    Is there a way to retroactively remove it so that I can ignore it from now on?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Arshid

    (@arshidkv12)

    Add following code to your theme function.php file.

    aadd_filter('cfdb7_before_save_data', 'remove_cfdb7_capcha_text');
    function remove_cfdb7_capcha_text($data){
     unset('g-captcha-response');
     return $data;
    }
    aaron1728

    (@aaron1728)

    Is that supposed to be aadd_filter or add_filter?

    aaron1728

    (@aaron1728)

    And is there a way to get rid of previous captcha data?

    Plugin Author Arshid

    (@arshidkv12)

    Sorry… add_filter.

    add_filter('cfdb7_before_save_data', 'remove_cfdb7_capcha_text');
    function remove_cfdb7_capcha_text($data){
     unset('g-captcha-response');
     return $data;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.