By default, Gravity PDF will include the aggregate data for Survey / Poll / Quiz fields for all entries in your Gravity Form. When you have a lot of entries, this can take considerable time to process. This filter allows you to disable this functionality.
This filter was added in Gravity PDF 5.1.
$disable | bool
- Set to "true" to disable global add-on data
$form | array
- The current Gravity Forms form array
$options | array
- The global query options to poll for the data
$fields | array
- The Gravity Forms fields we are polling data for
This snippet will show you how to disable the aggregate data for all PDFs:
This snippet will show you how to disable the aggregate data for all PDFs of a particular Gravity Form:
This filter is located in the
Model_PDF:get_addon_global_data() method of