gfpdf_form_settings_advanced

Conditionally enable specific fields.

Description

apply_filters( 'gfpdf_form_settings_advanced', (string) $format_id_format, (string) $name_esc_html_format_gravity_forms_pdf_extended, (string) $desc_esc_html_generate_a_pdf_in_the_selected_format_gravity_forms_pdf_extended, (string) $type_radio, (string) $options_standard_standard, (string) $pdfa1b_pdf_a_1b, (string) $pdfx1a_pdf_x_1a, (unknown) $var, (string) $std_standard, (string) $tooltip_h6_esc_html_pdf_format_gravity_forms_pdf_extended_h6_sprintf_esc_html_generate_a_document_adhearing_to_the_appropriate_pdf_standard_when_not_in_sstandard_s_mode_watermarks_alpha_transparent_pngs_and_security_options_can_not_be_used_gravity_forms_pdf_extended_em_em, (unknown) $var, (string) $security_id_security, (string) $name_esc_html_enable_pdf_security_gravity_forms_pdf_extended, (string) $desc_esc_html_password_protect_generated_pdfs_or_restrict_user_capabilities_gravity_forms_pdf_extended, (string) $type_radio, (string) $options_yes_esc_html_yes_gravity_forms_pdf_extended, (string) $no_esc_html_no_gravity_forms_pdf_extended, (unknown) $var, (string) $std_esc_html_no_gravity_forms_pdf_extended, (unknown) $var, (string) $password_id_password, (string) $name_esc_html_password_gravity_forms_pdf_extended, (string) $type_text, (string) $desc_password_protect_the_pdf_or_leave_blank_to_disable_password_protection, (string) $inputclass_merge_tag_support_mt_hide_all_fields, (unknown) $var, (string) $privileges_id_privileges, (string) $name_esc_html_privileges_gravity_forms_pdf_extended, (string) $desc_restrict_end_user_capabilities_by_removing_privileges, (string) $type_select, (string) $options_this_get_privilages, (string) $std_copy, (string) $print, (string) $print_highres, (string) $modify, (string) $annot_forms, (string) $fill_forms, (string) $extract, (string) $assemble, (unknown) $var, (string) $inputclass_large, (string) $chosen_true, (string) $tooltip_h6_esc_html_privileges_gravity_forms_pdf_extended_h6_esc_html_you_can_prevent_the_end_user_completing_certain_actions_to_the_pdf_such_as_copying_text_printing_adding_annotations_or_extracting_pages_gravity_forms_pdf_extended, (string) $multiple_true, (string) $placeholder_esc_html_select_end_user_pdf_privileges_gravity_forms_pdf_extended, (unknown) $var, (string) $image_dpi_id_image_dpi, (string) $name_esc_html_image_dpi_gravity_forms_pdf_extended, (string) $type_number, (string) $size_small, (string) $std_96, (string) $tooltip_h6_esc_html_image_dpi_gravity_forms_pdf_extended_h6_esc_html_control_the_image_dpi_dots_per_inch_in_pdfs_set_to_300_when_professionally_printing_document_gravity_forms_pdf_extended, (unknown) $var, (string) $save_id_save, (string) $name_esc_html_always_save_pdf_gravity_forms_pdf_extended, (string) $desc_esc_html_force_a_pdf_to_be_saved_to_disk_when_a_new_entry_is_created_gravity_forms_pdf_extended, (string) $type_radio, (string) $options_yes_esc_html_yes_gravity_forms_pdf_extended, (string) $no_esc_html_no_gravity_forms_pdf_extended, (unknown) $var, (string) $std_esc_html_no_gravity_forms_pdf_extended, (string) $tooltip_h6_esc_html_save_pdf_gravity_forms_pdf_extended_h6_sprintf_esc_html_by_default_pdfs_are_not_automatically_saved_to_disk_enable_this_option_to_force_the_pdf_to_be_generated_and_saved_useful_when_using_the_sgfpdf_post_pdf_save_s_hook_to_copy_the_pdf_to_an_alternate_location_gravity_forms_pdf_extended_code_code, (unknown) $var, (string) $public_access_id_public_access, (string) $name_esc_html_enable_public_access_gravity_forms_pdf_extended, (string) $desc_sprintf_esc_html_allow_sanyone_s_with_a_direct_link_to_access_the_pdf_sthis_disables_all_ssecurity_protocols_s_for_this_pdf_s_gravity_forms_pdf_extended_strong_strong_em_a_href_https_gravitypdf_com_documentation_v4_user_pdf_security_a_em, (string) $type_radio, (string) $options_yes_esc_html_yes_gravity_forms_pdf_extended, (string) $no_esc_html_no_gravity_forms_pdf_extended, (unknown) $var, (string) $std_esc_html_no_gravity_forms_pdf_extended, (string) $tooltip_h6_esc_html_public_access_gravity_forms_pdf_extended_h6_esc_html_when_public_access_is_on_all_security_protocols_are_disabled_and_anyone_worldwide_can_view_the_pdf_document_for_all_your_form_s_entries_for_most_users_the_standard_security_measures_will_be_adequate_and_public_access_should_remain_disabled_gravity_forms_pdf_extended, (unknown) $var, (string) $restrict_owner_id_restrict_owner, (string) $name_esc_html_restrict_owner_gravity_forms_pdf_extended, (string) $desc_esc_html_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_gravity_forms_pdf_extended, (string) $type_radio, (string) $options_yes_esc_html_yes_gravity_forms_pdf_extended, (string) $no_esc_html_no_gravity_forms_pdf_extended, (unknown) $var, (string) $std_this_get_option_default_restrict_owner_no, (string) $tooltip_h6_esc_html_restrict_owner_gravity_forms_pdf_extended_h6_esc_html_enable_this_setting_if_your_pdfs_should_not_be_viewable_by_the_end_user_gravity_forms_pdf_extended, (unknown) $var, (unknown) $var ); 

See https://gravitypdf.com/documentation/v4/gfpdf_form_settings_advanced/ for more details about this filter

Parameters (84)

0. $format_id_format — Optional. (string) => [ 'format' => [ 'id' => 'format'
The format id format.
1. $name_esc_html_format_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Format', 'gravity-forms-pdf-extended' )
The name esc html format gravity forms pdf extended.
2. $desc_esc_html_generate_a_pdf_in_the_selected_format_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Generate a PDF in the selected format.', 'gravity-forms-pdf-extended' )
The desc esc html generate a pdf in the selected format gravity forms pdf extended.
3. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
4. $options_standard_standard — Optional. (string) => 'options' => [ 'Standard' => 'Standard'
The options standard standard.
5. $pdfa1b_pdf_a_1b — Optional. (string) => 'PDFA1B' => 'PDF/A-1b'
The pdfa1b pdf a 1b.
6. $pdfx1a_pdf_x_1a — Optional. (string) => 'PDFX1A' => 'PDF/X-1a'
The pdfx1a pdf x 1a.
7. $var (unknown) => ]
The var.
8. $std_standard — Optional. (string) => 'std' => 'Standard'
The std standard.
9. $tooltip_h6_esc_html_pdf_format_gravity_forms_pdf_extended_h6_sprintf_esc_html_generate_a_document_adhearing_to_the_appropriate_pdf_standard_when_not_in_sstandard_s_mode_watermarks_alpha_transparent_pngs_and_security_options_can_not_be_used_gravity_forms_pdf_extended_em_em — Optional. (string) => 'tooltip' => '
' . esc_html__( 'PDF Format', 'gravity-forms-pdf-extended' ) . '
' . sprintf( esc_html__( "Generate a document adhearing to the appropriate PDF standard. When not in %sStandard%s mode, watermarks, alpha-transparent PNGs and security options can NOT be used.", 'gravity-forms-pdf-extended' ), '', '' )
The tooltip h6 esc html pdf format gravity forms pdf extended h6 sprintf esc html generate a document adhearing to the appropriate pdf standard when not in sstandard s mode watermarks alpha transparent pngs and security options can not be used gravity forms pdf extended em em.
10. $var (unknown) => ]
The var.
11. $security_id_security — Optional. (string) => 'security' => [ 'id' => 'security'
The security id security.
12. $name_esc_html_enable_pdf_security_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Enable PDF Security', 'gravity-forms-pdf-extended' )
The name esc html enable pdf security gravity forms pdf extended.
13. $desc_esc_html_password_protect_generated_pdfs_or_restrict_user_capabilities_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Password protect generated PDFs, or restrict user capabilities.', 'gravity-forms-pdf-extended' )
The desc esc html password protect generated pdfs or restrict user capabilities gravity forms pdf extended.
14. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
15. $options_yes_esc_html_yes_gravity_forms_pdf_extended — Optional. (string) => 'options' => [ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' )
The options yes esc html yes gravity forms pdf extended.
16. $no_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The no esc html no gravity forms pdf extended.
17. $var (unknown) => ]
The var.
18. $std_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The std esc html no gravity forms pdf extended.
19. $var (unknown) => ]
The var.
20. $password_id_password — Optional. (string) => 'password' => [ 'id' => 'password'
The password id password.
21. $name_esc_html_password_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Password', 'gravity-forms-pdf-extended' )
The name esc html password gravity forms pdf extended.
22. $type_text — Optional. (string) => 'type' => 'text'
The type text.
23. $desc_password_protect_the_pdf_or_leave_blank_to_disable_password_protection — Optional. (string) => 'desc' => 'Password protect the PDF, or leave blank to disable password protection.'
The desc password protect the pdf or leave blank to disable password protection.
24. $inputclass_merge_tag_support_mt_hide_all_fields — Optional. (string) => 'inputClass' => 'merge-tag-support mt-hide_all_fields'
The inputclass merge tag support mt hide all fields.
25. $var (unknown) => ]
The var.
26. $privileges_id_privileges — Optional. (string) => 'privileges' => [ 'id' => 'privileges'
The privileges id privileges.
27. $name_esc_html_privileges_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Privileges', 'gravity-forms-pdf-extended' )
The name esc html privileges gravity forms pdf extended.
28. $desc_restrict_end_user_capabilities_by_removing_privileges — Optional. (string) => 'desc' => 'Restrict end user capabilities by removing privileges.'
The desc restrict end user capabilities by removing privileges.
29. $type_select — Optional. (string) => 'type' => 'select'
The type select.
30. $options_this_get_privilages — Optional. (string) => 'options' => $this->get_privilages()
The options this get privilages.
31. $std_copy — Optional. (string) => 'std' => [ 'copy'
The std copy.
32. $print (string) => 'print'
The print.
33. $print_highres (string) => 'print-highres'
The print highres.
34. $modify (string) => 'modify'
The modify.
35. $annot_forms (string) => 'annot-forms'
The annot forms.
36. $fill_forms (string) => 'fill-forms'
The fill forms.
37. $extract (string) => 'extract'
The extract.
38. $assemble (string) => 'assemble'
The assemble.
39. $var (unknown) => ]
The var.
40. $inputclass_large — Optional. (string) => 'inputClass' => 'large'
The inputclass large.
41. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
42. $tooltip_h6_esc_html_privileges_gravity_forms_pdf_extended_h6_esc_html_you_can_prevent_the_end_user_completing_certain_actions_to_the_pdf_such_as_copying_text_printing_adding_annotations_or_extracting_pages_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Privileges', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'You can prevent the end user completing certain actions to the PDF * such as copying text, printing, adding annotations or extracting pages.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html privileges gravity forms pdf extended h6 esc html you can prevent the end user completing certain actions to the pdf such as copying text printing adding annotations or extracting pages gravity forms pdf extended.
43. $multiple_true — Optional. (string) => 'multiple' => true
The multiple true.
44. $placeholder_esc_html_select_end_user_pdf_privileges_gravity_forms_pdf_extended — Optional. (string) => 'placeholder' => esc_html__( 'Select End User PDF Privileges', 'gravity-forms-pdf-extended' )
The placeholder esc html select end user pdf privileges gravity forms pdf extended.
45. $var (unknown) => ]
The var.
46. $image_dpi_id_image_dpi — Optional. (string) => 'image_dpi' => [ 'id' => 'image_dpi'
The image dpi id image dpi.
47. $name_esc_html_image_dpi_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Image DPI', 'gravity-forms-pdf-extended' )
The name esc html image dpi gravity forms pdf extended.
48. $type_number — Optional. (string) => 'type' => 'number'
The type number.
49. $size_small — Optional. (string) => 'size' => 'small'
The size small.
50. $std_96 — Optional. (string) => 'std' => 96
The std 96.
51. $tooltip_h6_esc_html_image_dpi_gravity_forms_pdf_extended_h6_esc_html_control_the_image_dpi_dots_per_inch_in_pdfs_set_to_300_when_professionally_printing_document_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Image DPI', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'Control the image DPI (dots per inch) in PDFs. Set to 300 when professionally printing document.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html image dpi gravity forms pdf extended h6 esc html control the image dpi dots per inch in pdfs set to 300 when professionally printing document gravity forms pdf extended.
52. $var (unknown) => ]
The var.
53. $save_id_save — Optional. (string) => 'save' => [ 'id' => 'save'
The save id save.
54. $name_esc_html_always_save_pdf_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Always Save PDF', 'gravity-forms-pdf-extended' )
The name esc html always save pdf gravity forms pdf extended.
55. $desc_esc_html_force_a_pdf_to_be_saved_to_disk_when_a_new_entry_is_created_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Force a PDF to be saved to disk when a new entry is created.', 'gravity-forms-pdf-extended' )
The desc esc html force a pdf to be saved to disk when a new entry is created gravity forms pdf extended.
56. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
57. $options_yes_esc_html_yes_gravity_forms_pdf_extended — Optional. (string) => 'options' => [ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' )
The options yes esc html yes gravity forms pdf extended.
58. $no_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The no esc html no gravity forms pdf extended.
59. $var (unknown) => ]
The var.
60. $std_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The std esc html no gravity forms pdf extended.
61. $tooltip_h6_esc_html_save_pdf_gravity_forms_pdf_extended_h6_sprintf_esc_html_by_default_pdfs_are_not_automatically_saved_to_disk_enable_this_option_to_force_the_pdf_to_be_generated_and_saved_useful_when_using_the_sgfpdf_post_pdf_save_s_hook_to_copy_the_pdf_to_an_alternate_location_gravity_forms_pdf_extended_code_code — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Save PDF', 'gravity-forms-pdf-extended' ) . '
' . sprintf( esc_html__( "By default, PDFs are not automatically saved to disk. Enable this option to force the PDF to be generated and saved. Useful when using the %sgfpdf_post_pdf_save%s hook to copy the PDF to an alternate location.", 'gravity-forms-pdf-extended' ), '', '' )
The tooltip h6 esc html save pdf gravity forms pdf extended h6 sprintf esc html by default pdfs are not automatically saved to disk enable this option to force the pdf to be generated and saved useful when using the sgfpdf post pdf save s hook to copy the pdf to an alternate location gravity forms pdf extended code code.
62. $var (unknown) => ]
The var.
63. $public_access_id_public_access — Optional. (string) => 'public_access' => [ 'id' => 'public_access'
The public access id public access.
64. $name_esc_html_enable_public_access_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Enable Public Access', 'gravity-forms-pdf-extended' )
The name esc html enable public access gravity forms pdf extended.
65. $desc_sprintf_esc_html_allow_sanyone_s_with_a_direct_link_to_access_the_pdf_sthis_disables_all_ssecurity_protocols_s_for_this_pdf_s_gravity_forms_pdf_extended_strong_strong_em_a_href_https_gravitypdf_com_documentation_v4_user_pdf_security_a_em — Optional. (string) => 'desc' => sprintf( esc_html__( 'Allow %sanyone%s with a direct link to access the PDF. %sThis disables all %ssecurity protocols%s for this PDF.%s ', 'gravity-forms-pdf-extended' ), '', '', '', '', '', '' )
The desc sprintf esc html allow sanyone s with a direct link to access the pdf sthis disables all ssecurity protocols s for this pdf s gravity forms pdf extended strong strong em a href https gravitypdf com documentation v4 user pdf security a em.
66. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
67. $options_yes_esc_html_yes_gravity_forms_pdf_extended — Optional. (string) => 'options' => [ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' )
The options yes esc html yes gravity forms pdf extended.
68. $no_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The no esc html no gravity forms pdf extended.
69. $var (unknown) => ]
The var.
70. $std_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'std' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The std esc html no gravity forms pdf extended.
71. $tooltip_h6_esc_html_public_access_gravity_forms_pdf_extended_h6_esc_html_when_public_access_is_on_all_security_protocols_are_disabled_and_anyone_worldwide_can_view_the_pdf_document_for_all_your_form_s_entries_for_most_users_the_standard_security_measures_will_be_adequate_and_public_access_should_remain_disabled_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Public Access', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( "When public access is on all security protocols are disabled and anyone worldwide can view the PDF document for ALL your form's entries. For most users the standard security measures will be adequate and public access should remain disabled.", 'gravity-forms-pdf-extended' )
The tooltip h6 esc html public access gravity forms pdf extended h6 esc html when public access is on all security protocols are disabled and anyone worldwide can view the pdf document for all your form s entries for most users the standard security measures will be adequate and public access should remain disabled gravity forms pdf extended.
72. $var (unknown) => ]
The var.
73. $restrict_owner_id_restrict_owner — Optional. (string) => 'restrict_owner' => [ 'id' => 'restrict_owner'
The restrict owner id restrict owner.
74. $name_esc_html_restrict_owner_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Restrict Owner', 'gravity-forms-pdf-extended' )
The name esc html restrict owner gravity forms pdf extended.
75. $desc_esc_html_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'When enabled, the original entry owner will NOT be able to view the PDFs.', 'gravity-forms-pdf-extended' )
The desc esc html when enabled the original entry owner will not be able to view the pdfs gravity forms pdf extended.
76. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
77. $options_yes_esc_html_yes_gravity_forms_pdf_extended — Optional. (string) => 'options' => [ 'Yes' => esc_html__( 'Yes', 'gravity-forms-pdf-extended' )
The options yes esc html yes gravity forms pdf extended.
78. $no_esc_html_no_gravity_forms_pdf_extended — Optional. (string) => 'No' => esc_html__( 'No', 'gravity-forms-pdf-extended' )
The no esc html no gravity forms pdf extended.
79. $var (unknown) => ]
The var.
80. $std_this_get_option_default_restrict_owner_no — Optional. (string) => 'std' => $this->get_option( 'default_restrict_owner', 'No' )
The std this get option default restrict owner no.
81. $tooltip_h6_esc_html_restrict_owner_gravity_forms_pdf_extended_h6_esc_html_enable_this_setting_if_your_pdfs_should_not_be_viewable_by_the_end_user_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Restrict Owner', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'Enable this setting if your PDFs should not be viewable by the end user.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html restrict owner gravity forms pdf extended h6 esc html enable this setting if your pdfs should not be viewable by the end user gravity forms pdf extended.
82. $var (unknown) => ]
The var.
83. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $format_id_format = apply_filters( 'gfpdf_form_settings_advanced', $format_id_format, $name_esc_html_format_gravity_forms_pdf_extended, $desc_esc_html_generate_a_pdf_in_the_selected_format_gravity_forms_pdf_extended, $type_radio, $options_standard_standard, $pdfa1b_pdf_a_1b, $pdfx1a_pdf_x_1a, $var, $std_standard, $tooltip_h6_esc_html_pdf_format_gravity_forms_pdf_extended_h6_sprintf_esc_html_generate_a_document_adhearing_to_the_appropriate_pdf_standard_when_not_in_sstandard_s_mode_watermarks_alpha_transparent_pngs_and_security_options_can_not_be_used_gravity_forms_pdf_extended_em_em, $var, $security_id_security, $name_esc_html_enable_pdf_security_gravity_forms_pdf_extended, $desc_esc_html_password_protect_generated_pdfs_or_restrict_user_capabilities_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $var, $password_id_password, $name_esc_html_password_gravity_forms_pdf_extended, $type_text, $desc_password_protect_the_pdf_or_leave_blank_to_disable_password_protection, $inputclass_merge_tag_support_mt_hide_all_fields, $var, $privileges_id_privileges, $name_esc_html_privileges_gravity_forms_pdf_extended, $desc_restrict_end_user_capabilities_by_removing_privileges, $type_select, $options_this_get_privilages, $std_copy, $print, $print_highres, $modify, $annot_forms, $fill_forms, $extract, $assemble, $var, $inputclass_large, $chosen_true, $tooltip_h6_esc_html_privileges_gravity_forms_pdf_extended_h6_esc_html_you_can_prevent_the_end_user_completing_certain_actions_to_the_pdf_such_as_copying_text_printing_adding_annotations_or_extracting_pages_gravity_forms_pdf_extended, $multiple_true, $placeholder_esc_html_select_end_user_pdf_privileges_gravity_forms_pdf_extended, $var, $image_dpi_id_image_dpi, $name_esc_html_image_dpi_gravity_forms_pdf_extended, $type_number, $size_small, $std_96, $tooltip_h6_esc_html_image_dpi_gravity_forms_pdf_extended_h6_esc_html_control_the_image_dpi_dots_per_inch_in_pdfs_set_to_300_when_professionally_printing_document_gravity_forms_pdf_extended, $var, $save_id_save, $name_esc_html_always_save_pdf_gravity_forms_pdf_extended, $desc_esc_html_force_a_pdf_to_be_saved_to_disk_when_a_new_entry_is_created_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $tooltip_h6_esc_html_save_pdf_gravity_forms_pdf_extended_h6_sprintf_esc_html_by_default_pdfs_are_not_automatically_saved_to_disk_enable_this_option_to_force_the_pdf_to_be_generated_and_saved_useful_when_using_the_sgfpdf_post_pdf_save_s_hook_to_copy_the_pdf_to_an_alternate_location_gravity_forms_pdf_extended_code_code, $var, $public_access_id_public_access, $name_esc_html_enable_public_access_gravity_forms_pdf_extended, $desc_sprintf_esc_html_allow_sanyone_s_with_a_direct_link_to_access_the_pdf_sthis_disables_all_ssecurity_protocols_s_for_this_pdf_s_gravity_forms_pdf_extended_strong_strong_em_a_href_https_gravitypdf_com_documentation_v4_user_pdf_security_a_em, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $tooltip_h6_esc_html_public_access_gravity_forms_pdf_extended_h6_esc_html_when_public_access_is_on_all_security_protocols_are_disabled_and_anyone_worldwide_can_view_the_pdf_document_for_all_your_form_s_entries_for_most_users_the_standard_security_measures_will_be_adequate_and_public_access_should_remain_disabled_gravity_forms_pdf_extended, $var, $restrict_owner_id_restrict_owner, $name_esc_html_restrict_owner_gravity_forms_pdf_extended, $desc_esc_html_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_this_get_option_default_restrict_owner_no, $tooltip_h6_esc_html_restrict_owner_gravity_forms_pdf_extended_h6_esc_html_enable_this_setting_if_your_pdfs_should_not_be_viewable_by_the_end_user_gravity_forms_pdf_extended, $var, $var ); 
  2.  
  3. if ( !empty( $format_id_format ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_form_settings_advanced callback 
  2. function filter_gfpdf_form_settings_advanced( $format_id_format, $name_esc_html_format_gravity_forms_pdf_extended, $desc_esc_html_generate_a_pdf_in_the_selected_format_gravity_forms_pdf_extended, $type_radio, $options_standard_standard, $pdfa1b_pdf_a_1b, $pdfx1a_pdf_x_1a, $var, $std_standard, $tooltip_h6_esc_html_pdf_format_gravity_forms_pdf_extended_h6_sprintf_esc_html_generate_a_document_adhearing_to_the_appropriate_pdf_standard_when_not_in_sstandard_s_mode_watermarks_alpha_transparent_pngs_and_security_options_can_not_be_used_gravity_forms_pdf_extended_em_em, $var, $security_id_security, $name_esc_html_enable_pdf_security_gravity_forms_pdf_extended, $desc_esc_html_password_protect_generated_pdfs_or_restrict_user_capabilities_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $var, $password_id_password, $name_esc_html_password_gravity_forms_pdf_extended, $type_text, $desc_password_protect_the_pdf_or_leave_blank_to_disable_password_protection, $inputclass_merge_tag_support_mt_hide_all_fields, $var, $privileges_id_privileges, $name_esc_html_privileges_gravity_forms_pdf_extended, $desc_restrict_end_user_capabilities_by_removing_privileges, $type_select, $options_this_get_privilages, $std_copy, $print, $print_highres, $modify, $annot_forms, $fill_forms, $extract, $assemble, $var, $inputclass_large, $chosen_true, $tooltip_h6_esc_html_privileges_gravity_forms_pdf_extended_h6_esc_html_you_can_prevent_the_end_user_completing_certain_actions_to_the_pdf_such_as_copying_text_printing_adding_annotations_or_extracting_pages_gravity_forms_pdf_extended, $multiple_true, $placeholder_esc_html_select_end_user_pdf_privileges_gravity_forms_pdf_extended, $var, $image_dpi_id_image_dpi, $name_esc_html_image_dpi_gravity_forms_pdf_extended, $type_number, $size_small, $std_96, $tooltip_h6_esc_html_image_dpi_gravity_forms_pdf_extended_h6_esc_html_control_the_image_dpi_dots_per_inch_in_pdfs_set_to_300_when_professionally_printing_document_gravity_forms_pdf_extended, $var, $save_id_save, $name_esc_html_always_save_pdf_gravity_forms_pdf_extended, $desc_esc_html_force_a_pdf_to_be_saved_to_disk_when_a_new_entry_is_created_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $tooltip_h6_esc_html_save_pdf_gravity_forms_pdf_extended_h6_sprintf_esc_html_by_default_pdfs_are_not_automatically_saved_to_disk_enable_this_option_to_force_the_pdf_to_be_generated_and_saved_useful_when_using_the_sgfpdf_post_pdf_save_s_hook_to_copy_the_pdf_to_an_alternate_location_gravity_forms_pdf_extended_code_code, $var, $public_access_id_public_access, $name_esc_html_enable_public_access_gravity_forms_pdf_extended, $desc_sprintf_esc_html_allow_sanyone_s_with_a_direct_link_to_access_the_pdf_sthis_disables_all_ssecurity_protocols_s_for_this_pdf_s_gravity_forms_pdf_extended_strong_strong_em_a_href_https_gravitypdf_com_documentation_v4_user_pdf_security_a_em, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $tooltip_h6_esc_html_public_access_gravity_forms_pdf_extended_h6_esc_html_when_public_access_is_on_all_security_protocols_are_disabled_and_anyone_worldwide_can_view_the_pdf_document_for_all_your_form_s_entries_for_most_users_the_standard_security_measures_will_be_adequate_and_public_access_should_remain_disabled_gravity_forms_pdf_extended, $var, $restrict_owner_id_restrict_owner, $name_esc_html_restrict_owner_gravity_forms_pdf_extended, $desc_esc_html_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_yes_gravity_forms_pdf_extended, $no_esc_html_no_gravity_forms_pdf_extended, $var, $std_this_get_option_default_restrict_owner_no, $tooltip_h6_esc_html_restrict_owner_gravity_forms_pdf_extended_h6_esc_html_enable_this_setting_if_your_pdfs_should_not_be_viewable_by_the_end_user_gravity_forms_pdf_extended, $var, $var ) { 
  3. // make filter magic happen here... 
  4. return $format_id_format
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_form_settings_advanced', 'filter_gfpdf_form_settings_advanced', 10, 84 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_form_settings_advanced', 'filter_gfpdf_form_settings_advanced', 10, 84 ); 

Defined (1)

The filter is defined in the following location(s).

/src/helper/Helper_Options_Fields.php  
  1. 'form_settings_advanced' => apply_filters( 'gfpdf_form_settings_advanced',