Hello.
I found out, that I can use a so called Hook to realize that…
I tried the following code in my functions.php but it didn’t work.
The form ist send via Mail but the Meta-field did not change the value…
Did someone see the error?
Thanks for your help.
function wpcf7_vor_mailversand($cf7) {
$current_post_id = $post->ID;
$anmeldungen = get_post_meta($current_post_id, 'Anmeldungen', true);
$anmeldungen++;
update_post_meta($current_post_id, 'Anmeldungen', $anmeldungen);
}
add_action( 'wpcf7_before_send_mail', 'wpcf7_vor_mailversand' );