• 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 9 replies - 1 through 9 (of 9 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;
    }
    Thread Starter aaron1728

    (@aaron1728)

    Is that supposed to be aadd_filter or add_filter?

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

    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?

    I’ve just tried adding in this code to remove the recaptcha column, but nothing changed. I also tried changing “unset($data[‘g-captcha-response’]);” to unset($data[‘g-recaptcha-response’]);” as the column is named recaptcha, with no luck.

    Has the way this works changed at all? Or is there now a different way of achieving this?

    Apologies if this should be in a new thread by the way – I thought it would make sense to have all the info in this thread.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Omit off g-recaptcha-response data in CSV export’ is closed to new replies.