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 8 replies - 1 through 8 (of 8 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;
    }

    Is that supposed to be aadd_filter or add_filter?

    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;
    }

    what is $data here will you pls elaborate

    This throws errors when you try to add it. I had to update it as follows:

    
    add_filter('cfdb7_before_save_data', 'remove_cfdb7_capcha_text');
    function remove_cfdb7_capcha_text($data){
    	$toremove = 'g-captcha-response';
    	unset($toremove);
    	return $data;
    }
    Plugin Author Arshid

    (@arshidkv12)

    Sorry… Small mistake in my code. Please try as follows.

    
    add_filter('cfdb7_before_save_data', 'remove_cfdb7_capcha_text');
    function remove_cfdb7_capcha_text($data){
     unset($data['g-captcha-response']);
     return $data;
    }

    How about removing those captcha IDs from the dashboard list?

Viewing 8 replies - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.