Skip to content

Commit

Permalink
Improve documentation for hidden fields by "Conditional Fields for Co…
Browse files Browse the repository at this point in the history
…ntact Form 7" plugin.
  • Loading branch information
remcotolsma committed Dec 13, 2023
1 parent 1b72340 commit 54bb0c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .wp-env.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"./tests/wp-env-mail.php",
"pronamic/wp-pronamic-pay-test-helper",
"https://downloads.wordpress.org/plugin/contact-form-7.5.6.2.zip",
"https://downloads.wordpress.org/plugin/cf7-conditional-fields.zip",
"https://downloads.wordpress.org/plugin/flamingo.zip",
"https://downloads.wordpress.org/plugin/pronamic-client.zip",
"https://downloads.wordpress.org/plugin/pronamic-ideal.zip",
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ skip_mail: on
- https://wordpress.org/plugins/pronamic-pay-with-mollie-for-contact-form-7/
- https://wordpress.org/plugins/contact-form-7/
- https://github.com/rocklobster-in/contact-form-7
- https://wordpress.org/plugins/cf7-conditional-fields/
7 changes: 6 additions & 1 deletion src/Pronamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,12 @@ public static function get_submission_value( WPCF7_Submission $submission, $type

$prefixed_type = 'pronamic_pay_' . $type;

// Hidden fields.
/**
* Hidden fields may arise when using the "Conditional Fields for Contact Form 7" plugin.
*
* @link https://wordpress.org/plugins/cf7-conditional-fields/
* @link https://github.com/pronamic/wp-pronamic-pay-contact-form-7/commit/83122efa3755f1d4b667aed3e3e7c2ae0f813faa
*/
$hidden_fields = \filter_input( \INPUT_POST, '_wpcf7cf_hidden_group_fields' );

if ( ! empty( $hidden_fields ) ) {
Expand Down

0 comments on commit 54bb0c9

Please sign in to comment.