gfpdf_settings_general_security

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

Description

apply_filters( 'gfpdf_settings_general_security', (unknown) $admin_capabilities_id_admin_capabilities, (string) $name_esc_html_user_restriction_gravity_forms_pdf_extended, (string) $desc_esc_html_restrict_pdf_access_to_users_with_any_of_these_capabilities_the_administrator_role_always_has_full_access_gravity_forms_pdf_extended, (string) $type_select, (string) $options_this_get_capabilities, (string) $std_gravityforms_view_entries, (string) $inputclass_large, (string) $chosen_true, (string) $multiple_true, (string) $required_true, (string) $placeholder_esc_html_select_capability_gravity_forms_pdf_extended, (string) $tooltip_h6_esc_html_user_restriction_gravity_forms_pdf_extended_h6_esc_html_only_logged_in_users_with_any_selected_capability_can_view_generated_pdfs_they_don_t_have_ownership_of_ownership_refers_to_an_end_user_who_completed_the_original_gravity_form_entry_gravity_forms_pdf_extended, (unknown) $var, (string) $default_restrict_owner_id_default_restrict_owner, (string) $name_esc_html_default_owner_restrictions_gravity_forms_pdf_extended, (string) $desc_esc_html_set_the_default_pdf_owner_permissions_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_unless_they_have_one_of_the_above_capabilities_gravity_forms_pdf_extended, (string) $type_radio, (string) $options_yes_esc_html_enable_gravity_forms_pdf_extended, (string) $no_esc_html_disable_gravity_forms_pdf_extended, (unknown) $var, (string) $std_esc_html_no_gravity_forms_pdf_extended, (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_this_can_be_set_on_a_per_pdf_basis_gravity_forms_pdf_extended, (unknown) $var, (string) $logged_out_timeout_id_logged_out_timeout, (string) $name_esc_html_logged_out_timeout_gravity_forms_pdf_extended, (string) $desc_sprintf_esc_html_limit_how_long_a_slogged_out_s_users_has_direct_access_to_the_pdf_after_completing_the_form_set_to_0_to_disable_time_limit_not_recommended_gravity_forms_pdf_extended_em_em, (string) $desc2_esc_html_minutes_gravity_forms_pdf_extended, (string) $type_number, (string) $size_small, (string) $std_20, (string) $tooltip_h6_esc_html_logged_out_timeout_gravity_forms_pdf_extended_h6_esc_html_logged_out_users_can_view_pdfs_when_their_ip_matches_the_one_assigned_to_the_gravity_form_entry_because_ip_addresses_can_change_a_time_based_restriction_also_applies_gravity_forms_pdf_extended, (unknown) $var, (unknown) $var ); 

Parameters (33)

0. $admin_capabilities_id_admin_capabilities — Optional. (unknown) => [ 'admin_capabilities' => [ 'id' => 'admin_capabilities'
The admin capabilities id admin capabilities.
1. $name_esc_html_user_restriction_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'User Restriction', 'gravity-forms-pdf-extended' )
The name esc html user restriction gravity forms pdf extended.
2. $desc_esc_html_restrict_pdf_access_to_users_with_any_of_these_capabilities_the_administrator_role_always_has_full_access_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Restrict PDF access to users with any of these capabilities. The Administrator Role always has full access.', 'gravity-forms-pdf-extended' )
The desc esc html restrict pdf access to users with any of these capabilities the administrator role always has full access gravity forms pdf extended.
3. $type_select — Optional. (string) => 'type' => 'select'
The type select.
4. $options_this_get_capabilities — Optional. (string) => 'options' => $this->get_capabilities()
The options this get capabilities.
5. $std_gravityforms_view_entries — Optional. (string) => 'std' => 'gravityforms_view_entries'
The std gravityforms view entries.
6. $inputclass_large — Optional. (string) => 'inputClass' => 'large'
The inputclass large.
7. $chosen_true — Optional. (string) => 'chosen' => true
The chosen true.
8. $multiple_true — Optional. (string) => 'multiple' => true
The multiple true.
9. $required_true — Optional. (string) => 'required' => true
The required true.
10. $placeholder_esc_html_select_capability_gravity_forms_pdf_extended — Optional. (string) => 'placeholder' => esc_html__( 'Select Capability', 'gravity-forms-pdf-extended' )
The placeholder esc html select capability gravity forms pdf extended.
11. $tooltip_h6_esc_html_user_restriction_gravity_forms_pdf_extended_h6_esc_html_only_logged_in_users_with_any_selected_capability_can_view_generated_pdfs_they_don_t_have_ownership_of_ownership_refers_to_an_end_user_who_completed_the_original_gravity_form_entry_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'User Restriction', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( "Only logged in users with any selected capability can view generated PDFs they don't have ownership of. Ownership refers to an end user who completed the original Gravity Form entry.", 'gravity-forms-pdf-extended' )
The tooltip h6 esc html user restriction gravity forms pdf extended h6 esc html only logged in users with any selected capability can view generated pdfs they don t have ownership of ownership refers to an end user who completed the original gravity form entry gravity forms pdf extended.
12. $var (unknown) => ]
The var.
13. $default_restrict_owner_id_default_restrict_owner — Optional. (string) => 'default_restrict_owner' => [ 'id' => 'default_restrict_owner'
The default restrict owner id default restrict owner.
14. $name_esc_html_default_owner_restrictions_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Default Owner Restrictions', 'gravity-forms-pdf-extended' )
The name esc html default owner restrictions gravity forms pdf extended.
15. $desc_esc_html_set_the_default_pdf_owner_permissions_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_unless_they_have_one_of_the_above_capabilities_gravity_forms_pdf_extended — Optional. (string) => 'desc' => esc_html__( 'Set the default PDF owner permissions. When enabled, the original entry owner will NOT be able to view the PDFs (unless they have one of the above capabilities).', 'gravity-forms-pdf-extended' )
The desc esc html set the default pdf owner permissions when enabled the original entry owner will not be able to view the pdfs unless they have one of the above capabilities gravity forms pdf extended.
16. $type_radio — Optional. (string) => 'type' => 'radio'
The type radio.
17. $options_yes_esc_html_enable_gravity_forms_pdf_extended — Optional. (string) => 'options' => [ 'Yes' => esc_html__( 'Enable', 'gravity-forms-pdf-extended' )
The options yes esc html enable gravity forms pdf extended.
18. $no_esc_html_disable_gravity_forms_pdf_extended — Optional. (string) => 'No' => esc_html__( 'Disable', 'gravity-forms-pdf-extended' )
The no esc html disable gravity forms pdf extended.
19. $var (unknown) => ]
The var.
20. $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.
21. $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_this_can_be_set_on_a_per_pdf_basis_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. This can be set on a per-PDF basis.', '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 this can be set on a per pdf basis gravity forms pdf extended.
22. $var (unknown) => ]
The var.
23. $logged_out_timeout_id_logged_out_timeout — Optional. (string) => 'logged_out_timeout' => [ 'id' => 'logged_out_timeout'
The logged out timeout id logged out timeout.
24. $name_esc_html_logged_out_timeout_gravity_forms_pdf_extended — Optional. (string) => 'name' => esc_html__( 'Logged Out Timeout', 'gravity-forms-pdf-extended' )
The name esc html logged out timeout gravity forms pdf extended.
25. $desc_sprintf_esc_html_limit_how_long_a_slogged_out_s_users_has_direct_access_to_the_pdf_after_completing_the_form_set_to_0_to_disable_time_limit_not_recommended_gravity_forms_pdf_extended_em_em — Optional. (string) => 'desc' => sprintf( esc_html__( 'Limit how long a %slogged out%s users has direct access to the PDF after completing the form. Set to 0 to disable time limit (not recommended).', 'gravity-forms-pdf-extended' ), '', '' )
The desc sprintf esc html limit how long a slogged out s users has direct access to the pdf after completing the form set to 0 to disable time limit not recommended gravity forms pdf extended em em.
26. $desc2_esc_html_minutes_gravity_forms_pdf_extended — Optional. (string) => 'desc2' => esc_html__( 'minutes', 'gravity-forms-pdf-extended' )
The desc2 esc html minutes gravity forms pdf extended.
27. $type_number — Optional. (string) => 'type' => 'number'
The type number.
28. $size_small — Optional. (string) => 'size' => 'small'
The size small.
29. $std_20 — Optional. (string) => 'std' => 20
The std 20.
30. $tooltip_h6_esc_html_logged_out_timeout_gravity_forms_pdf_extended_h6_esc_html_logged_out_users_can_view_pdfs_when_their_ip_matches_the_one_assigned_to_the_gravity_form_entry_because_ip_addresses_can_change_a_time_based_restriction_also_applies_gravity_forms_pdf_extended — Optional. (string) => 'tooltip' => '
' . esc_html__( 'Logged Out Timeout', 'gravity-forms-pdf-extended' ) . '
' . esc_html__( 'Logged out users can view PDFs when their IP matches the one assigned to the Gravity Form entry. Because IP addresses can change, a time-based restriction also applies.', 'gravity-forms-pdf-extended' )
The tooltip h6 esc html logged out timeout gravity forms pdf extended h6 esc html logged out users can view pdfs when their ip matches the one assigned to the gravity form entry because ip addresses can change a time based restriction also applies gravity forms pdf extended.
31. $var (unknown) => ]
The var.
32. $var (unknown) => ]
The var.

Usage

To run the hook, copy the example below.
  1. $admin_capabilities_id_admin_capabilities = apply_filters( 'gfpdf_settings_general_security', $admin_capabilities_id_admin_capabilities, $name_esc_html_user_restriction_gravity_forms_pdf_extended, $desc_esc_html_restrict_pdf_access_to_users_with_any_of_these_capabilities_the_administrator_role_always_has_full_access_gravity_forms_pdf_extended, $type_select, $options_this_get_capabilities, $std_gravityforms_view_entries, $inputclass_large, $chosen_true, $multiple_true, $required_true, $placeholder_esc_html_select_capability_gravity_forms_pdf_extended, $tooltip_h6_esc_html_user_restriction_gravity_forms_pdf_extended_h6_esc_html_only_logged_in_users_with_any_selected_capability_can_view_generated_pdfs_they_don_t_have_ownership_of_ownership_refers_to_an_end_user_who_completed_the_original_gravity_form_entry_gravity_forms_pdf_extended, $var, $default_restrict_owner_id_default_restrict_owner, $name_esc_html_default_owner_restrictions_gravity_forms_pdf_extended, $desc_esc_html_set_the_default_pdf_owner_permissions_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_unless_they_have_one_of_the_above_capabilities_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_enable_gravity_forms_pdf_extended, $no_esc_html_disable_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $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_this_can_be_set_on_a_per_pdf_basis_gravity_forms_pdf_extended, $var, $logged_out_timeout_id_logged_out_timeout, $name_esc_html_logged_out_timeout_gravity_forms_pdf_extended, $desc_sprintf_esc_html_limit_how_long_a_slogged_out_s_users_has_direct_access_to_the_pdf_after_completing_the_form_set_to_0_to_disable_time_limit_not_recommended_gravity_forms_pdf_extended_em_em, $desc2_esc_html_minutes_gravity_forms_pdf_extended, $type_number, $size_small, $std_20, $tooltip_h6_esc_html_logged_out_timeout_gravity_forms_pdf_extended_h6_esc_html_logged_out_users_can_view_pdfs_when_their_ip_matches_the_one_assigned_to_the_gravity_form_entry_because_ip_addresses_can_change_a_time_based_restriction_also_applies_gravity_forms_pdf_extended, $var, $var ); 
  2.  
  3. if ( !empty( $admin_capabilities_id_admin_capabilities ) ) { 
  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_general_security callback 
  2. function filter_gfpdf_settings_general_security( $admin_capabilities_id_admin_capabilities, $name_esc_html_user_restriction_gravity_forms_pdf_extended, $desc_esc_html_restrict_pdf_access_to_users_with_any_of_these_capabilities_the_administrator_role_always_has_full_access_gravity_forms_pdf_extended, $type_select, $options_this_get_capabilities, $std_gravityforms_view_entries, $inputclass_large, $chosen_true, $multiple_true, $required_true, $placeholder_esc_html_select_capability_gravity_forms_pdf_extended, $tooltip_h6_esc_html_user_restriction_gravity_forms_pdf_extended_h6_esc_html_only_logged_in_users_with_any_selected_capability_can_view_generated_pdfs_they_don_t_have_ownership_of_ownership_refers_to_an_end_user_who_completed_the_original_gravity_form_entry_gravity_forms_pdf_extended, $var, $default_restrict_owner_id_default_restrict_owner, $name_esc_html_default_owner_restrictions_gravity_forms_pdf_extended, $desc_esc_html_set_the_default_pdf_owner_permissions_when_enabled_the_original_entry_owner_will_not_be_able_to_view_the_pdfs_unless_they_have_one_of_the_above_capabilities_gravity_forms_pdf_extended, $type_radio, $options_yes_esc_html_enable_gravity_forms_pdf_extended, $no_esc_html_disable_gravity_forms_pdf_extended, $var, $std_esc_html_no_gravity_forms_pdf_extended, $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_this_can_be_set_on_a_per_pdf_basis_gravity_forms_pdf_extended, $var, $logged_out_timeout_id_logged_out_timeout, $name_esc_html_logged_out_timeout_gravity_forms_pdf_extended, $desc_sprintf_esc_html_limit_how_long_a_slogged_out_s_users_has_direct_access_to_the_pdf_after_completing_the_form_set_to_0_to_disable_time_limit_not_recommended_gravity_forms_pdf_extended_em_em, $desc2_esc_html_minutes_gravity_forms_pdf_extended, $type_number, $size_small, $std_20, $tooltip_h6_esc_html_logged_out_timeout_gravity_forms_pdf_extended_h6_esc_html_logged_out_users_can_view_pdfs_when_their_ip_matches_the_one_assigned_to_the_gravity_form_entry_because_ip_addresses_can_change_a_time_based_restriction_also_applies_gravity_forms_pdf_extended, $var, $var ) { 
  3. // make filter magic happen here... 
  4. return $admin_capabilities_id_admin_capabilities
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'gfpdf_settings_general_security', 'filter_gfpdf_settings_general_security', 10, 33 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'gfpdf_settings_general_security', 'filter_gfpdf_settings_general_security', 10, 33 ); 

Defined (1)

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

/src/helper/Helper_Options_Fields.php  
  1. 'general_security' => apply_filters( 'gfpdf_settings_general_security',