ok)
the filter already comes with valid values and check captcha:
file – /cf7-grid-layout/public/class-cf7-grid-layout-public.php
string – 755, function ‘filter_wpcf7_validate’
when you re-check captcha it already does not exist
file – /cf7-grid-layout/public/class-cf7-grid-layout-public.php
string – 755, function ‘filter_wpcf7_validate’
$result = apply_filters( “wpcf7_validate_{$type}”, $result, $tag );
because after checking the captcha is removed:
file – /contact-form-7/modules/really-simple-captcha.php
function wpcf7_captcha_validation_filter( $result, $tag ) {
$type = $tag->type;
$name = $tag->name;
$captchac = ‘_wpcf7_captcha_challenge_’ . $name;
$prefix = isset( $_POST[$captchac] ) ? (string) $_POST[$captchac] : ”;
$response = isset( $_POST[$name] ) ? (string) $_POST[$name] : ”;
$response = wpcf7_canonicalize( $response );
if ( 0 == strlen( $prefix ) || ! wpcf7_check_captcha( $prefix, $response ) ) {
$result->invalidate( $tag, wpcf7_get_message( ‘captcha_not_match’ ) );
}
if ( 0 != strlen( $prefix ) ) {
wpcf7_remove_captcha( $prefix );
}
return $result;
}