wpcf7_posted_data: How to modify checkbox value?
-
I would like to modify the checkbox value with the wpcf7_posted_data function.
This is my code:
add_filter( 'wpcf7_posted_data', 'your_custom_wpcf7_posted_data' ); function your_custom_wpcf7_posted_data( $posted_data ) { if ( ! isset( $posted_data['messeausklang[0]'] ) ) mail('xxx', 'Mein Betreff', 'Teilnahme am ersten Tag'); return $posted_data; }
The checkbox “messeausklang” contains two values. The plugin names them both “messeausklang[]”.
How can I modify one single value?
- The topic ‘wpcf7_posted_data: How to modify checkbox value?’ is closed to new replies.