I had to add 2 filters to add the new type because one gets called via ajax to override the select options and the second is to get the current selected value
add_filter( 'gravityview/common/sortable_fields', array( $this, 'add_extra_fields' ) ); add_filter( 'gravityview_az_filters_fields', array( $this, 'add_extra_fields' ) );
I tried to use one condition only with all user ids as an array but I couldn't make it work with GF_Query_Series or GF_Query_JSON_Literal
foreach ( $user_ids as $user_id ) { $conditions[] = new \GF_Query_Condition( new \GF_Query_Column( $filter_field ), \GF_Query_Condition::EQ, new \GF_Query_Literal( $user_id ) ); }
I had to add 2 filters to add the new type because one gets called via ajax to override the select options and the second is to get the current selected value
add_filter( 'gravityview/common/sortable_fields', array( $this, 'add_extra_fields' ) ); add_filter( 'gravityview_az_filters_fields', array( $this, 'add_extra_fields' ) );
I tried to use one condition only with all user ids as an array but I couldn't make it work with
GF_Query_Series
orGF_Query_JSON_Literal
foreach ( $user_ids as $user_id ) { $conditions[] = new \GF_Query_Condition( new \GF_Query_Column( $filter_field ), \GF_Query_Condition::EQ, new \GF_Query_Literal( $user_id ) ); }