gppa_object_type_query_results
Description
Filter the objects returned from the object type’s query method.
Usage
Applied globally
add_filter( 'gppa_object_type_query_results', 'my_custom_function' );Parameters
$objects
array
The objects returned from the object type’s query method.
$object_type_instance
GPPA_Object_Type
The current GPPA object type instance
$args
array
Query arguments array.
populate
string
What is being populated. Either ‘choices’, ‘values’.
filter_groups
array
Filters for querying/fetching the objects.
ordering
array
Ordering settings for querying/fetching (includes ‘orderby’ and ‘order’).
templates
array
Templates to determine how choices/values will utilize the returned objects.
field
GF_Field
Current field.
unique
bool
Return only unique results.