gppa_query_all_value_objects
Description
With Populate Anything 2.0, we now only query 1 object at a time when populating values.
This is to improve performance, but can break some snippets that rely on the existing behavior.
This filter allows you to override the limit and bring back the existing behavior to query all objects when populating values.
Usage
Filter whether to query all objects for values for all fields with dynamic value population.
add_filter( 'gppa_query_all_value_objects', '__return_true' );
Filter whether to query all objects for values for all fields with dynamic value population in a specific form.
add_filter( 'gppa_query_all_value_objects_FORMID', '__return_true' );
Filter whether to query all objects for values populated in a specific field in a specific form.
add_filter( 'gppa_query_all_value_objects_FORMID_FIELDID', '__return_true' );
Parameters
populate_all_objects_for_value bool
Whether to query all objects when populating values.
field \GF_Field
Current field to populate a value for.
field_values array
Field values that are currently in the form to be used for Filter Values.
object_type \GPPA_Object_Type
Current Object Type instance.
filter_groups array
Filter Groups to use for filtering objects.
primary_property string
Primary Property to use for filtering objects.
templates array
Templates to use when populating.
Since
This filter is available since Gravity Forms Populate Anything 2.0.