gfpdf_settings_tools

Tools Settings.

Description

apply_filters( 'gfpdf_settings_tools', (unknown) $setup_templates_id_setup_templates, (string) $name_esc_html_setup_custom_templates_gravity_forms_pdf_extended, (string) $desc_sprintf_esc_html_setup_environment_for_building_custom_templates_ssee_docs_to_get_started_s_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_documentation_v4_developer_first_custom_pdf_a, (string) $type_button, (string) $std_esc_html_run_setup_gravity_forms_pdf_extended, (string) $options_copy, (string) $tooltip_h6_esc_html_setup_custom_templates_gravity_forms_pdf_extended_h6_esc_html_the_setup_will_copy_the_plugin_templates_to_your_uploads_directory_so_you_can_freely_create_and_modify_pdf_templates_without_the_risk_of_overriding_your_modifications_when_the_plugin_updates_gravity_forms_pdf_extended, (unknown) $var, (string) $manage_fonts_id_manage_fonts, (string) $name_esc_html_fonts_gravity_forms_pdf_extended, (string) $desc_esc_html_add_update_or_remove_custom_fonts_gravity_forms_pdf_extended, (string) $type_button, (string) $std_esc_html_manage_fonts_gravity_forms_pdf_extended, (string) $options_install_fonts, (string) $tooltip_h6_esc_html_install_fonts_gravity_forms_pdf_extended_h6_sprintf_esc_html_custom_fonts_can_be_installed_for_use_in_your_pdfs_only_s_ttf_s_font_files_are_supported_gravity_forms_pdf_extended_code_code_code_code_code_code, (unknown) $var, (unknown) $var ); 

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

Parameters (17)

0. $setup_templates_id_setup_templates — Optional. (unknown) => [ 'setup_templates' => [ 'id' => 'setup_templates'
The setup templates id setup templates.
1. $name_esc_html_setup_custom_templates_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Setup Custom Templates', 'gravity-forms-pdf-extended' )
The name esc html setup custom templates gravity forms pdf extended.
2. $desc_sprintf_esc_html_setup_environment_for_building_custom_templates_ssee_docs_to_get_started_s_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_documentation_v4_developer_first_custom_pdf_a — Optional. (string) => 'desc' => sprintf( esc_html__( 'Setup environment for building custom templates. %sSee docs to get started%s.', 'gravity-forms-pdf-extended' ), '', '' )
The desc sprintf esc html setup environment for building custom templates ssee docs to get started s gravity forms pdf extended a href https gravitypdf com documentation v4 developer first custom pdf a.
3. $type_button — Optional. (string) => 'type' => 'button'
The type button.
4. $std_esc_html_run_setup_gravity_forms_pdf_extended — Optional. (string) => 'std' => esc_html__( 'Run Setup', 'gravity-forms-pdf-extended' )
The std esc html run setup gravity forms pdf extended.
5. $options_copy — Optional. (string) => 'options' => 'copy'
The options copy.
6. $tooltip_h6_esc_html_setup_custom_templates_gravity_forms_pdf_extended_h6_esc_html_the_setup_will_copy_the_plugin_templates_to_your_uploads_directory_so_you_can_freely_create_and_modify_pdf_templates_without_the_risk_of_overriding_your_modifications_when_the_plugin_updates_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Setup Custom Templates', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'The setup will copy the plugin templates to your uploads directory so you can freely create and modify PDF templates without the risk of overriding your modifications when the plugin updates.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html setup custom templates gravity forms pdf extended h6 esc html the setup will copy the plugin templates to your uploads directory so you can freely create and modify pdf templates without the risk of overriding your modifications when the plugin updates gravity forms pdf extended.
7. $var (unknown) => ]
The var.
8. $manage_fonts_id_manage_fonts — Optional. (string) => 'manage_fonts' => [ 'id' => 'manage_fonts'
The manage fonts id manage fonts.
9. $name_esc_html_fonts_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Fonts', 'gravity-forms-pdf-extended' )
The name esc html fonts gravity forms pdf extended.
10. $desc_esc_html_add_update_or_remove_custom_fonts_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Add, update or remove custom fonts.', 'gravity-forms-pdf-extended' )
The desc esc html add update or remove custom fonts gravity forms pdf extended.
11. $type_button — Optional. (string) => 'type' => 'button'
The type button.
12. $std_esc_html_manage_fonts_gravity_forms_pdf_extended — Optional. (string) => 'std' => esc_html__( 'Manage Fonts', 'gravity-forms-pdf-extended' )
The std esc html manage fonts gravity forms pdf extended.
13. $options_install_fonts — Optional. (string) => 'options' => 'install_fonts'
The options install fonts.
14. $tooltip_h6_esc_html_install_fonts_gravity_forms_pdf_extended_h6_sprintf_esc_html_custom_fonts_can_be_installed_for_use_in_your_pdfs_only_s_ttf_s_font_files_are_supported_gravity_forms_pdf_extended_code_code_code_code_code_code — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Install Fonts', 'gravity-forms-pdf-extended' ) . '
' . sprintf( esc_html__( 'Custom fonts can be installed for use in your PDFs. Only %s.ttf%s font files are supported.', 'gravity-forms-pdf-extended' ), '', '', '', '', '', '' )
The tooltip h6 esc html install fonts gravity forms pdf extended h6 sprintf esc html custom fonts can be installed for use in your pdfs only s ttf s font files are supported gravity forms pdf extended code code code code code code.
15. $var (unknown) => ]
The var.
16. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $setup_templates_id_setup_templates = apply_filters( 'gfpdf_settings_tools', $setup_templates_id_setup_templates, $name_esc_html_setup_custom_templates_gravity_forms_pdf_extended, $desc_sprintf_esc_html_setup_environment_for_building_custom_templates_ssee_docs_to_get_started_s_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_documentation_v4_developer_first_custom_pdf_a, $type_button, $std_esc_html_run_setup_gravity_forms_pdf_extended, $options_copy, $tooltip_h6_esc_html_setup_custom_templates_gravity_forms_pdf_extended_h6_esc_html_the_setup_will_copy_the_plugin_templates_to_your_uploads_directory_so_you_can_freely_create_and_modify_pdf_templates_without_the_risk_of_overriding_your_modifications_when_the_plugin_updates_gravity_forms_pdf_extended, $var, $manage_fonts_id_manage_fonts, $name_esc_html_fonts_gravity_forms_pdf_extended, $desc_esc_html_add_update_or_remove_custom_fonts_gravity_forms_pdf_extended, $type_button, $std_esc_html_manage_fonts_gravity_forms_pdf_extended, $options_install_fonts, $tooltip_h6_esc_html_install_fonts_gravity_forms_pdf_extended_h6_sprintf_esc_html_custom_fonts_can_be_installed_for_use_in_your_pdfs_only_s_ttf_s_font_files_are_supported_gravity_forms_pdf_extended_code_code_code_code_code_code, $var, $var ); 
  2.  
  3. if ( !empty( $setup_templates_id_setup_templates ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the gfpdf_settings_tools callback 
  2. function filter_gfpdf_settings_tools( $setup_templates_id_setup_templates, $name_esc_html_setup_custom_templates_gravity_forms_pdf_extended, $desc_sprintf_esc_html_setup_environment_for_building_custom_templates_ssee_docs_to_get_started_s_gravity_forms_pdf_extended_a_href_https_gravitypdf_com_documentation_v4_developer_first_custom_pdf_a, $type_button, $std_esc_html_run_setup_gravity_forms_pdf_extended, $options_copy, $tooltip_h6_esc_html_setup_custom_templates_gravity_forms_pdf_extended_h6_esc_html_the_setup_will_copy_the_plugin_templates_to_your_uploads_directory_so_you_can_freely_create_and_modify_pdf_templates_without_the_risk_of_overriding_your_modifications_when_the_plugin_updates_gravity_forms_pdf_extended, $var, $manage_fonts_id_manage_fonts, $name_esc_html_fonts_gravity_forms_pdf_extended, $desc_esc_html_add_update_or_remove_custom_fonts_gravity_forms_pdf_extended, $type_button, $std_esc_html_manage_fonts_gravity_forms_pdf_extended, $options_install_fonts, $tooltip_h6_esc_html_install_fonts_gravity_forms_pdf_extended_h6_sprintf_esc_html_custom_fonts_can_be_installed_for_use_in_your_pdfs_only_s_ttf_s_font_files_are_supported_gravity_forms_pdf_extended_code_code_code_code_code_code, $var, $var ) { 
  3. // make filter magic happen here... 
  4. return $setup_templates_id_setup_templates
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_settings_tools', 'filter_gfpdf_settings_tools', 10, 17 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_settings_tools', 'filter_gfpdf_settings_tools', 10, 17 ); 

Defined (1)

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

/src/helper/Helper_Options_Fields.php  
  1. 'tools' => apply_filters( 'gfpdf_settings_tools',