gfpdf_form_settings_appearance

Form (PDF) Settings Appearance.

Description

apply_filters( 'gfpdf_form_settings_appearance', (unknown) $pdf_size_id_pdf_size, (string) $name_esc_html_paper_size_gravity_forms_pdf_extended, (string) $desc_esc_html_set_the_paper_size_used_when_generating_pdfs_gravity_forms_pdf_extended, (string) $type_select, (string) $options_this_get_paper_size, (string) $std_this_get_option_default_pdf_size_a4, (string) $inputclass_large, (string) $class_gfpdf_paper_size, (string) $chosen_true, (unknown) $var, (string) $custom_pdf_size_id_custom_pdf_size, (string) $name_esc_html_custom_paper_size_gravity_forms_pdf_extended, (string) $desc_esc_html_control_the_exact_paper_size_can_be_set_in_millimeters_or_inches_gravity_forms_pdf_extended, (string) $type_paper_size, (string) $size_small, (string) $chosen_true, (string) $required_true, (string) $class_gfpdf_hidden_gfpdf_paper_size_other, (string) $std_this_get_option_default_custom_pdf_size, (unknown) $var, (string) $orientation_id_orientation, (string) $name_esc_html_orientation_gravity_forms_pdf_extended, (string) $type_select, (string) $options_portrait_esc_html_portrait_gravity_forms_pdf_extended, (string) $landscape_esc_html_landscape_gravity_forms_pdf_extended, (unknown) $var, (string) $inputclass_large, (string) $chosen_true, (unknown) $var, (string) $font_id_font, (string) $name_esc_html_font_gravity_forms_pdf_extended, (string) $type_select, (string) $options_this_get_installed_fonts, (string) $std_this_get_option_default_font, (string) $desc_sprintf_esc_html_set_the_font_type_used_in_pdfs_choose_an_existing_font_or_sinstall_your_own_s_gravity_forms_pdf_extended_a_href_this_data_settings_url_tab_tools_manage_fonts_a, (string) $inputclass_large, (string) $chosen_true, (unknown) $var, (string) $class_gfpdf_font_type, (unknown) $var, (string) $font_size_id_font_size, (string) $name_esc_html_font_size_gravity_forms_pdf_extended, (string) $desc_esc_html_set_the_font_size_to_use_in_the_pdf_gravity_forms_pdf_extended, (string) $desc2_pt, (string) $type_number, (string) $size_small, (string) $std_this_get_option_default_font_size_10, (string) $class_gfpdf_font_size, (unknown) $var, (string) $font_colour_id_font_colour, (string) $name_esc_html_font_color_gravity_forms_pdf_extended, (string) $type_color, (string) $std_this_get_option_default_font_colour_000000, (string) $desc_esc_html_set_the_font_color_to_use_in_the_pdf_gravity_forms_pdf_extended, (string) $class_gfpdf_font_colour, (unknown) $var, (string) $rtl_id_rtl, (string) $name_esc_html_reverse_text_rtl_gravity_forms_pdf_extended, (string) $desc_esc_html_script_like_arabic_and_hebrew_are_written_right_to_left_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_rtl_no, (string) $tooltip_h6_esc_html_reverse_text_rtl_gravity_forms_pdf_extended_h6_esc_html_enable_rtl_if_you_are_writing_in_arabic_hebrew_syriac_n_ko_thaana_tifinar_or_urdu_gravity_forms_pdf_extended, (unknown) $var, (unknown) $var ); 

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

Parameters (67)

0. $pdf_size_id_pdf_size — Optional. (unknown) => [ 'pdf_size' => [ 'id' => 'pdf_size'
The pdf size id pdf size.
1. $name_esc_html_paper_size_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Paper Size', 'gravity-forms-pdf-extended' )
The name esc html paper size gravity forms pdf extended.
2. $desc_esc_html_set_the_paper_size_used_when_generating_pdfs_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Set the paper size used when generating PDFs.', 'gravity-forms-pdf-extended' )
The desc esc html set the paper size used when generating pdfs gravity forms pdf extended.
3. $type_select — Optional. (string) => 'type' => 'select'
The type select.
4. $options_this_get_paper_size — Optional. (string) => 'options' => $this->get_paper_size()
The options this get paper size.
5. $std_this_get_option_default_pdf_size_a4 — Optional. (string) => 'std' => $this->get_option( 'default_pdf_size', 'A4' )
The std this get option default pdf size a4.
6. $inputclass_large — Optional. (string) => 'inputClass' => 'large'
The inputclass large.
7. $class_gfpdf_paper_size — Optional. (string) => 'class' => 'gfpdf_paper_size'
The class gfpdf paper size.
8. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
9. $var (unknown) => ]
The var.
10. $custom_pdf_size_id_custom_pdf_size — Optional. (string) => 'custom_pdf_size' => [ 'id' => 'custom_pdf_size'
The custom pdf size id custom pdf size.
11. $name_esc_html_custom_paper_size_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Custom Paper Size', 'gravity-forms-pdf-extended' )
The name esc html custom paper size gravity forms pdf extended.
12. $desc_esc_html_control_the_exact_paper_size_can_be_set_in_millimeters_or_inches_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Control the exact paper size. Can be set in millimeters or inches.', 'gravity-forms-pdf-extended' )
The desc esc html control the exact paper size can be set in millimeters or inches gravity forms pdf extended.
13. $type_paper_size — Optional. (string) => 'type' => 'paper_size'
The type paper size.
14. $size_small — Optional. (string) => 'size' => 'small'
The size small.
15. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
16. $required_true — Optional. (string) => 'required' => true
The required true.
17. $class_gfpdf_hidden_gfpdf_paper_size_other — Optional. (string) => 'class' => 'gfpdf-hidden gfpdf_paper_size_other'
The class gfpdf hidden gfpdf paper size other.
18. $std_this_get_option_default_custom_pdf_size — Optional. (string) => 'std' => $this->get_option( 'default_custom_pdf_size' )
The std this get option default custom pdf size.
19. $var (unknown) => ]
The var.
20. $orientation_id_orientation — Optional. (string) => 'orientation' => [ 'id' => 'orientation'
The orientation id orientation.
21. $name_esc_html_orientation_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Orientation', 'gravity-forms-pdf-extended' )
The name esc html orientation gravity forms pdf extended.
22. $type_select — Optional. (string) => 'type' => 'select'
The type select.
23. $options_portrait_esc_html_portrait_gravity_forms_pdf_extended — Optional. (string) => 'options' => [ 'portrait' => esc_html__( 'Portrait', 'gravity-forms-pdf-extended' )
The options portrait esc html portrait gravity forms pdf extended.
24. $landscape_esc_html_landscape_gravity_forms_pdf_extended — Optional. (string) => 'landscape' => esc_html__( 'Landscape', 'gravity-forms-pdf-extended' )
The landscape esc html landscape gravity forms pdf extended.
25. $var (unknown) => ]
The var.
26. $inputclass_large — Optional. (string) => 'inputClass' => 'large'
The inputclass large.
27. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
28. $var (unknown) => ]
The var.
29. $font_id_font — Optional. (string) => 'font' => [ 'id' => 'font'
The font id font.
30. $name_esc_html_font_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Font', 'gravity-forms-pdf-extended' )
The name esc html font gravity forms pdf extended.
31. $type_select — Optional. (string) => 'type' => 'select'
The type select.
32. $options_this_get_installed_fonts — Optional. (string) => 'options' => $this->get_installed_fonts()
The options this get installed fonts.
33. $std_this_get_option_default_font — Optional. (string) => 'std' => $this->get_option( 'default_font' )
The std this get option default font.
34. $desc_sprintf_esc_html_set_the_font_type_used_in_pdfs_choose_an_existing_font_or_sinstall_your_own_s_gravity_forms_pdf_extended_a_href_this_data_settings_url_tab_tools_manage_fonts_a — Optional. (string) => 'desc' => sprintf( esc_html__( 'Set the font type used in PDFs. Choose an existing font or %sinstall your own%s.', 'gravity-forms-pdf-extended' ), '', '' )
The desc sprintf esc html set the font type used in pdfs choose an existing font or sinstall your own s gravity forms pdf extended a href this data settings url tab tools manage fonts a.
35. $inputclass_large — Optional. (string) => 'inputClass' => 'large'
The inputclass large.
36. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
37. $var — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Fonts', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'Gravity PDF comes bundled with fonts for most languages world-wide. Want to use a specific font type? Use the font installer (found in the Forms -> Settings -> Tools tab).', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html fonts gravity forms pdf extended h6 esc html gravity pdf comes bundled with fonts for most languages world wide want to use a specific font type use the font installer found in the forms settings tools tab gravity forms pdf extended.
38. $class_gfpdf_font_type — Optional. (string) => 'class' => 'gfpdf_font_type'
The class gfpdf font type.
39. $var (unknown) => ]
The var.
40. $font_size_id_font_size — Optional. (string) => 'font_size' => [ 'id' => 'font_size'
The font size id font size.
41. $name_esc_html_font_size_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Font Size', 'gravity-forms-pdf-extended' )
The name esc html font size gravity forms pdf extended.
42. $desc_esc_html_set_the_font_size_to_use_in_the_pdf_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Set the font size to use in the PDF.', 'gravity-forms-pdf-extended' )
The desc esc html set the font size to use in the pdf gravity forms pdf extended.
43. $desc2_pt — Optional. (string) => 'desc2' => 'pt'
The desc2 pt.
44. $type_number — Optional. (string) => 'type' => 'number'
The type number.
45. $size_small — Optional. (string) => 'size' => 'small'
The size small.
46. $std_this_get_option_default_font_size_10 — Optional. (string) => 'std' => $this->get_option( 'default_font_size', 10 )
The std this get option default font size 10.
47. $class_gfpdf_font_size — Optional. (string) => 'class' => 'gfpdf_font_size'
The class gfpdf font size.
48. $var (unknown) => ]
The var.
49. $font_colour_id_font_colour — Optional. (string) => 'font_colour' => [ 'id' => 'font_colour'
The font colour id font colour.
50. $name_esc_html_font_color_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Font Color', 'gravity-forms-pdf-extended' )
The name esc html font color gravity forms pdf extended.
51. $type_color — Optional. (string) => 'type' => 'color'
The type color.
52. $std_this_get_option_default_font_colour_000000 — Optional. (string) => 'std' => $this->get_option( 'default_font_colour', '#000000' )
The std this get option default font colour 000000.
53. $desc_esc_html_set_the_font_color_to_use_in_the_pdf_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Set the font color to use in the PDF.', 'gravity-forms-pdf-extended' )
The desc esc html set the font color to use in the pdf gravity forms pdf extended.
54. $class_gfpdf_font_colour — Optional. (string) => 'class' => 'gfpdf_font_colour'
The class gfpdf font colour.
55. $var (unknown) => ]
The var.
56. $rtl_id_rtl — Optional. (string) => 'rtl' => [ 'id' => 'rtl'
The rtl id rtl.
57. $name_esc_html_reverse_text_rtl_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' )
The name esc html reverse text rtl gravity forms pdf extended.
58. $desc_esc_html_script_like_arabic_and_hebrew_are_written_right_to_left_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Script like Arabic and Hebrew are written right to left.', 'gravity-forms-pdf-extended' )
The desc esc html script like arabic and hebrew are written right to left gravity forms pdf extended.
59. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
60. $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.
61. $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.
62. $var (unknown) => ]
The var.
63. $std_this_get_option_default_rtl_no — Optional. (string) => 'std' => $this->get_option( 'default_rtl', 'No' )
The std this get option default rtl no.
64. $tooltip_h6_esc_html_reverse_text_rtl_gravity_forms_pdf_extended_h6_esc_html_enable_rtl_if_you_are_writing_in_arabic_hebrew_syriac_n_ko_thaana_tifinar_or_urdu_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Reverse Text (RTL)', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( "Enable RTL if you are writing in Arabic, Hebrew, Syriac, N'ko, Thaana, Tifinar or Urdu.", 'gravity-forms-pdf-extended' )
The tooltip h6 esc html reverse text rtl gravity forms pdf extended h6 esc html enable rtl if you are writing in arabic hebrew syriac n ko thaana tifinar or urdu gravity forms pdf extended.
65. $var (unknown) => ]
The var.
66. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $pdf_size_id_pdf_size = apply_filters( 'gfpdf_form_settings_appearance', $pdf_size_id_pdf_size, $name_esc_html_paper_size_gravity_forms_pdf_extended, $desc_esc_html_set_the_paper_size_used_when_generating_pdfs_gravity_forms_pdf_extended, $type_select, $options_this_get_paper_size, $std_this_get_option_default_pdf_size_a4, $inputclass_large, $class_gfpdf_paper_size, $chosen_true, $var, $custom_pdf_size_id_custom_pdf_size, $name_esc_html_custom_paper_size_gravity_forms_pdf_extended, $desc_esc_html_control_the_exact_paper_size_can_be_set_in_millimeters_or_inches_gravity_forms_pdf_extended, $type_paper_size, $size_small, $chosen_true, $required_true, $class_gfpdf_hidden_gfpdf_paper_size_other, $std_this_get_option_default_custom_pdf_size, $var, $orientation_id_orientation, $name_esc_html_orientation_gravity_forms_pdf_extended, $type_select, $options_portrait_esc_html_portrait_gravity_forms_pdf_extended, $landscape_esc_html_landscape_gravity_forms_pdf_extended, $var, $inputclass_large, $chosen_true, $var, $font_id_font, $name_esc_html_font_gravity_forms_pdf_extended, $type_select, $options_this_get_installed_fonts, $std_this_get_option_default_font, $desc_sprintf_esc_html_set_the_font_type_used_in_pdfs_choose_an_existing_font_or_sinstall_your_own_s_gravity_forms_pdf_extended_a_href_this_data_settings_url_tab_tools_manage_fonts_a, $inputclass_large, $chosen_true, $var, $class_gfpdf_font_type, $var, $font_size_id_font_size, $name_esc_html_font_size_gravity_forms_pdf_extended, $desc_esc_html_set_the_font_size_to_use_in_the_pdf_gravity_forms_pdf_extended, $desc2_pt, $type_number, $size_small, $std_this_get_option_default_font_size_10, $class_gfpdf_font_size, $var, $font_colour_id_font_colour, $name_esc_html_font_color_gravity_forms_pdf_extended, $type_color, $std_this_get_option_default_font_colour_000000, $desc_esc_html_set_the_font_color_to_use_in_the_pdf_gravity_forms_pdf_extended, $class_gfpdf_font_colour, $var, $rtl_id_rtl, $name_esc_html_reverse_text_rtl_gravity_forms_pdf_extended, $desc_esc_html_script_like_arabic_and_hebrew_are_written_right_to_left_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_rtl_no, $tooltip_h6_esc_html_reverse_text_rtl_gravity_forms_pdf_extended_h6_esc_html_enable_rtl_if_you_are_writing_in_arabic_hebrew_syriac_n_ko_thaana_tifinar_or_urdu_gravity_forms_pdf_extended, $var, $var ); 
  2.  
  3. if ( !empty( $pdf_size_id_pdf_size ) ) { 
  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_appearance callback 
  2. function filter_gfpdf_form_settings_appearance( $pdf_size_id_pdf_size, $name_esc_html_paper_size_gravity_forms_pdf_extended, $desc_esc_html_set_the_paper_size_used_when_generating_pdfs_gravity_forms_pdf_extended, $type_select, $options_this_get_paper_size, $std_this_get_option_default_pdf_size_a4, $inputclass_large, $class_gfpdf_paper_size, $chosen_true, $var, $custom_pdf_size_id_custom_pdf_size, $name_esc_html_custom_paper_size_gravity_forms_pdf_extended, $desc_esc_html_control_the_exact_paper_size_can_be_set_in_millimeters_or_inches_gravity_forms_pdf_extended, $type_paper_size, $size_small, $chosen_true, $required_true, $class_gfpdf_hidden_gfpdf_paper_size_other, $std_this_get_option_default_custom_pdf_size, $var, $orientation_id_orientation, $name_esc_html_orientation_gravity_forms_pdf_extended, $type_select, $options_portrait_esc_html_portrait_gravity_forms_pdf_extended, $landscape_esc_html_landscape_gravity_forms_pdf_extended, $var, $inputclass_large, $chosen_true, $var, $font_id_font, $name_esc_html_font_gravity_forms_pdf_extended, $type_select, $options_this_get_installed_fonts, $std_this_get_option_default_font, $desc_sprintf_esc_html_set_the_font_type_used_in_pdfs_choose_an_existing_font_or_sinstall_your_own_s_gravity_forms_pdf_extended_a_href_this_data_settings_url_tab_tools_manage_fonts_a, $inputclass_large, $chosen_true, $var, $class_gfpdf_font_type, $var, $font_size_id_font_size, $name_esc_html_font_size_gravity_forms_pdf_extended, $desc_esc_html_set_the_font_size_to_use_in_the_pdf_gravity_forms_pdf_extended, $desc2_pt, $type_number, $size_small, $std_this_get_option_default_font_size_10, $class_gfpdf_font_size, $var, $font_colour_id_font_colour, $name_esc_html_font_color_gravity_forms_pdf_extended, $type_color, $std_this_get_option_default_font_colour_000000, $desc_esc_html_set_the_font_color_to_use_in_the_pdf_gravity_forms_pdf_extended, $class_gfpdf_font_colour, $var, $rtl_id_rtl, $name_esc_html_reverse_text_rtl_gravity_forms_pdf_extended, $desc_esc_html_script_like_arabic_and_hebrew_are_written_right_to_left_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_rtl_no, $tooltip_h6_esc_html_reverse_text_rtl_gravity_forms_pdf_extended_h6_esc_html_enable_rtl_if_you_are_writing_in_arabic_hebrew_syriac_n_ko_thaana_tifinar_or_urdu_gravity_forms_pdf_extended, $var, $var ) { 
  3. // make filter magic happen here... 
  4. return $pdf_size_id_pdf_size
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_form_settings_appearance', 'filter_gfpdf_form_settings_appearance', 10, 67 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_form_settings_appearance', 'filter_gfpdf_form_settings_appearance', 10, 67 ); 

Defined (1)

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

/src/helper/Helper_Options_Fields.php  
  1. 'form_settings_appearance' => apply_filters( 'gfpdf_form_settings_appearance',