Twig+WordPress how to use array arguments inside a function?

If it is straight pass through to native WP function this might work:

{% for distrito in wp.get_terms('Distritos', {'foo': 'bar'} ) %}

However overall this is specific to implementation and is hard to guess without taking that code apart.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)