get_value(); if ( is_array( $field_values ) ) { $result = ! empty( array_intersect( $field_values, $haystack ) ); } else { $result = in_array( $field_values, $haystack, true ); } return $result; } public static function get_operators() { return [ 'autocomplete' => [ 'label' => 'is', ], ]; } public static function is_hidden() { return true; } public static function get_control_type() { return Autocomplete::get_key(); /* use the 'autocomplete' control because the functionality is the same */ } }