Version: 5
CAUTION
️Version 5 of Gravity PDF does not have full support for Gravity Forms 2.5 and you should consider upgrading to version 6. If you cannot, version 5 will still function but have a degraded admin experience. Support and bug/security fixes will be provided until 27 April 2023.gfpdf_enable_master_password_field
Description
Use this filter to enable the PDF Master Password in the Advanced tab when the Security option is enabled.
Version
This filter was introduced in Gravity PDF 4.2.
Parameters
$enable | boolean
- Return true to show the Master Password field in the UI
Usage
Use the following code to enable the field:
add_filter( 'gfpdf_enable_master_password_field', function( $enable, $settings ) {
return true;
}, 10, 2 );
Source Code
This filter is located in the Helper_Options_Field.php
files in the /src/helper/
directory.