Skip to content

Commit

Permalink
Run form_data fields through gfpdf_blacklisted_fields filter
Browse files Browse the repository at this point in the history
  • Loading branch information
jakejackson1 committed Mar 21, 2024
1 parent 93b77d5 commit 3767dfb
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/Model/Model_PDF.php
Original file line number Diff line number Diff line change
Expand Up @@ -1326,14 +1326,9 @@ public function get_form_data( $entry ) {
foreach ( $form['fields'] as $field ) {

/* Skip over captcha, password and page fields */
$fields_to_skip = apply_filters(
'gfpdf_form_data_skip_fields',
[
'captcha',
'password',
'page',
]
);
$fields_to_skip = [ 'captcha', 'password', 'page' ];
$fields_to_skip = apply_filters( 'gfpdf_form_data_skip_fields', $fields_to_skip );
$fields_to_skip = apply_filters( 'gfpdf_blacklisted_fields', $fields_to_skip );

if ( in_array( $field->type, $fields_to_skip, true ) ) {
continue;
Expand Down

0 comments on commit 3767dfb

Please sign in to comment.