[size=14]b3317133[/SIZE] genau das was ich gebraucht habe ;)
[PLAIN]
add_filter( 'wpcf7_validate_email*', 'custom_email_confirmation_validation_filter', 20, 2 );
function custom_email_confirmation_validation_filter( $result, $tag ) {
if ( 'your-email-confirm' == $tag->name ) {
$your_email = isset( $_POST['your-email'] ) ? trim( $_POST['your-email'] ) : '';
$your_email_confirm = isset( $_POST['your-email-confirm'] ) ? trim( $_POST['your-email-confirm'] ) : '';
if ( $your_email != $your_email_confirm ) {
$result->invalidate( $tag, "Are you sure this is the correct address?" );
}
}
return $result;
}
[/PLAIN]
Über diesen Code kann man dann vorher Prüfen ob die Daten vernünftig zueinander passen :)
Danke für all eure Antworten und für die schnelle Hilfe :):):)