ID, $partners ) ) { if ( null !== $bank_canton ) { if ( is_array( @$bank->acf['bank_cantons'] ) && in_array( $bank_canton, $bank->acf['bank_cantons'] ) ) { $_partners[] = $bank->ID; } } else { $_partners[] = $bank->ID; } } } $partners = $_partners; } public static function get_filter_fields() { $fields = [ 'entry_type' => [], 'backing_type' => [], 'partners' => [] ]; return $fields; } }